Skip to content

Commit a0ae1de

Browse files
committed
swap order sspar and a
1 parent 5833968 commit a0ae1de

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

src/hompack_nf.f90

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ end subroutine rhojac_t
131131

132132
impure subroutine fixpnf( &
133133
state, callbacks, n, y, iflag, &
134-
arcre, arcae, ansre, ansae, a, sspar, lunit, ispoly)
134+
arcre, arcae, ansre, ansae, sspar, a, lunit, ispoly)
135135
!! This subroutine finds a fixed point or zero of the N-dimensional vector function
136136
!! \( F(x) \), or tracks a zero curve of a general homotopy map \( \rho(a,\lambda,x) \).
137137
!!
@@ -360,20 +360,17 @@ impure subroutine fixpnf( &
360360
real(dp), intent(inout) :: ansae
361361
!! Absolute error tolerance required of the final solution at `lambda = 1`.
362362
!! May be increased when `iflag=2`.
363+
real(dp), intent(inout), optional :: sspar(8)
364+
!! Step-size control parameters:
365+
!! `(lideal, rideal, dideal, hmin, hmax, bmin, bmax, p)`.
366+
!! Parameters used by the optimal step-size estimation algorithm.
367+
!! Elements that are nonpositive on input are replaced by default values.
363368
real(dp), intent(in), optional :: a(:)
364369
!! Parameter vector `a`.
365370
!! For fixed-point and zero-finding problems, the array is assumed to have
366371
!! length `n` and need not be initialized by the user.
367372
!! For curve-tracking problems, it must be initialized on input.
368373
!! Unchanged on output.
369-
real(dp), intent(inout), optional :: sspar(8)
370-
!! Step-size control parameters:
371-
!! `(lideal, rideal, dideal, hmin, hmax, bmin, bmax, p)`.
372-
!! Parameters used by the optimal step-size estimation algorithm.
373-
!! Elements that are nonpositive on input are replaced by default values.
374-
! real(dp), intent(out), optional :: lambda
375-
! !! The value of `lambda` at the final point on the zero curve. Normally this
376-
! !! is 1, but in abnormal situations it may be less than 1.
377374
integer, intent(in), optional :: lunit
378375
!! Logical I/O unit for intermediate output.
379376
!! * `0` : No output is printed (default).

test/test_f.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ end subroutine mainx
121121
callbacks%f => f2
122122
callbacks%fjac => fjac2
123123
call fixpnf(state, callbacks, n, y, iflag, arcre, arcae, ansre, ansae, &
124-
a=a, sspar=sspar, lunit=trace)
124+
sspar=sspar, a=a, lunit=trace)
125125
nfe = state%nfe
126126
arclen = state%s
127127
else

0 commit comments

Comments
 (0)