Skip to content

Commit 9c661fd

Browse files
committed
fixed a typo where the wrong dpert was being used when x=0 for the relative mode
it was using eps, rather than input dpert. Fixes #14 also some CI updates
1 parent 07a4ad6 commit 9c661fd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: [ubuntu-latest]
1313
gcc_v: [10] # Version of GFortran we want to use.
14-
python-version: [3.9]
14+
python-version: [3.11]
1515
env:
1616
FC: gfortran-${{ matrix.gcc_v }}
1717
GCC_V: ${{ matrix.gcc_v }}
@@ -31,7 +31,7 @@ jobs:
3131
uses: ts-graphviz/setup-graphviz@v1
3232

3333
- name: Setup Fortran Package Manager
34-
uses: fortran-lang/setup-fpm@v5
34+
uses: fortran-lang/setup-fpm@v7
3535
with:
3636
github-token: ${{ secrets.GITHUB_TOKEN }}
3737

@@ -80,7 +80,8 @@ jobs:
8080

8181
- name: Deploy Documentation
8282
if: github.ref == 'refs/heads/master'
83-
uses: JamesIves/github-pages-deploy-action@v4.4.1
83+
uses: JamesIves/github-pages-deploy-action@v4.7.3
8484
with:
8585
branch: gh-pages # The branch the action should deploy to.
8686
folder: doc # The folder the action should deploy.
87+
single-commit: true

src/numerical_differentiation_module.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2957,7 +2957,7 @@ subroutine compute_perturb_vector(me,x,dpert,perturb_mode,dx)
29572957

29582958
! make sure none are too small:
29592959
where (dx<eps)
2960-
dx = eps
2960+
dx = dpert
29612961
end where
29622962

29632963
end subroutine compute_perturb_vector

0 commit comments

Comments
 (0)