We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee805b commit d5cb1c0Copy full SHA for d5cb1c0
1 file changed
src/hompack_nf.f90
@@ -317,6 +317,19 @@ impure subroutine fixpnf( &
317
! of any component of y exceeds cursw
318
real(dp), parameter :: cursw = 10.0_dp
319
320
+ ! Check callbacks are present
321
+ if (iflag == 0 .or. iflag == -1) then
322
+ if (.not. associated(callbacks%f) .or. .not. associated(callbacks%fjac)) then
323
+ iflag = 7
324
+ return
325
+ end if
326
+ else if (iflag == -2) then
327
+ if (.not. associated(callbacks%rho) .or. .not. associated(callbacks%rhojac)) then
328
329
330
331
332
+
333
! Test logical switch to reflect intended usage of 'fixpnf'
334
if (present(poly_switch)) then
335
polsys = poly_switch
0 commit comments