Skip to content

Commit d57fa08

Browse files
Merge pull request #27 from jacobwilliams/develop
Develop
2 parents 62ada30 + c2c8284 commit d57fa08

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ jobs:
44

55
Build:
66
runs-on: ${{ matrix.os }}
7+
permissions:
8+
contents: write
79
strategy:
810
fail-fast: false
911
matrix:
@@ -16,34 +18,37 @@ jobs:
1618

1719
steps:
1820
- name: Checkout code
19-
uses: actions/checkout@v3.0.2
21+
uses: actions/checkout@v3
2022
with:
2123
submodules: recursive
2224

23-
- name: Set up Python 3.x
24-
uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
25+
- name: Install Python
26+
uses: actions/setup-python@v4 # Use pip to install latest CMake, & FORD/Jin2For, etc.
2527
with:
2628
python-version: ${{ matrix.python-version }}
2729

2830
- name: Setup Graphviz
2931
uses: ts-graphviz/setup-graphviz@v1
3032

3133
- name: Setup Fortran Package Manager
32-
uses: fortran-lang/setup-fpm@v4
34+
uses: fortran-lang/setup-fpm@v5
3335
with:
3436
github-token: ${{ secrets.GITHUB_TOKEN }}
3537

3638
- name: Install Python dependencies
3739
if: contains( matrix.os, 'ubuntu')
3840
run: |
3941
python -m pip install --upgrade pip
40-
pip install matplotlib ford
42+
pip install ford numpy matplotlib
4143
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4244
4345
- name: Install GFortran Linux
4446
if: contains( matrix.os, 'ubuntu')
4547
run: |
4648
sudo apt-get install lcov
49+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
50+
sudo apt-get update
51+
sudo apt-get install -y gcc-${{ matrix.gcc_v }} gfortran-${{ matrix.gcc_v }}
4752
sudo update-alternatives \
4853
--install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc_v }} 100 \
4954
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ matrix.gcc_v }} \
@@ -58,14 +63,15 @@ jobs:
5863
- name: Create coverage report
5964
run: |
6065
mkdir -p ${{ env.COV_DIR }}
61-
lcov --capture --initial --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.base
62-
lcov --capture --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.capture
66+
mv ./build/gfortran_*/*/* ${{ env.COV_DIR }}
67+
lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base
68+
lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture
6369
lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info
6470
env:
6571
COV_DIR: build/coverage
6672

6773
- name: Upload coverage report
68-
uses: codecov/codecov-action@v2
74+
uses: codecov/codecov-action@v3
6975
with:
7076
files: build/coverage/coverage.info
7177

@@ -74,7 +80,7 @@ jobs:
7480

7581
- name: Deploy Documentation
7682
if: github.ref == 'refs/heads/master'
77-
uses: JamesIves/github-pages-deploy-action@v4.3.3
83+
uses: JamesIves/github-pages-deploy-action@v4.4.1
7884
with:
7985
branch: gh-pages # The branch the action should deploy to.
8086
folder: doc # The folder the action should deploy.

fpm.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ include-dir = "src"
1818
[install]
1919
library = true
2020

21-
[[ test ]]
21+
[[test]]
2222
name = "single"
2323
source-dir = "test"
2424
main = "quadpack_tests_single.F90"
2525

26-
[[ test ]]
26+
[[test]]
2727
name = "double"
2828
source-dir = "test"
2929
main = "quadpack_tests_double.F90"
3030

31-
[[ test ]]
31+
[[test]]
3232
name = "quad"
3333
source-dir = "test"
3434
main = "quadpack_tests_quad.F90"

src/quadpack_generic.F90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4212,7 +4212,7 @@ subroutine dqc25c(f, a, b, c, Result, Abserr, Krul, Neval)
42124212

42134213
real(wp) :: ak22, amom0, amom1, amom2, cc, &
42144214
p2, p3, p4, resabs, resasc, u
4215-
integer :: i, isym, k, kp
4215+
integer :: i, isym, k
42164216
real(wp) :: fval(25) !! value of the function `f` at the points
42174217
!! `cos(k*pi/24)`, `k = 0, ..., 24`
42184218
real(wp) :: cheb12(13) !! chebyshev series expansion coefficients,
@@ -4226,6 +4226,8 @@ subroutine dqc25c(f, a, b, c, Result, Abserr, Krul, Neval)
42264226
real(wp) :: hlgth !! half-length of the interval
42274227
real(wp) :: centr !! mid point of the interval
42284228

4229+
integer,parameter :: kp = 0 !! unused variable for [[dqwgtc]]
4230+
42294231
real(wp), dimension(11), parameter :: x = [(cos(k*pi/24.0_wp), k=1, 11)]
42304232
!! the vector x contains the values `cos(k*pi/24)`,
42314233
!! `k = 1, ..., 11`, to be used for the chebyshev series
@@ -6941,7 +6943,7 @@ real(wp) function dqwgtc(x, c, p2, p3, p4, Kp)
69416943
real(wp), intent(in) :: p3
69426944
real(wp), intent(in) :: p4
69436945
real(wp), intent(in) :: x
6944-
integer, intent(in) :: Kp
6946+
integer, intent(in) :: Kp !! not used in this function
69456947

69466948
dqwgtc = 1.0_wp/(x - c)
69476949

0 commit comments

Comments
 (0)