diff --git a/fields.f90 b/fields.f90 index e19be5a..32d9cb7 100644 --- a/fields.f90 +++ b/fields.f90 @@ -16211,6 +16211,13 @@ recursive function fdiff(isearch,x,func) result (f) ! h = astep(1,imode)+astep(2,imode) ! + ! debug !!! + ! + if (abs(f2-f1)>1e6) then + write(out,"('DEBUG SY: f1-f2 is too large',2e20.12)") f1,f2 + stop 'DEBUG SY: f1-f2 is too large' + endif + ! f = ( f2-f1 )/(h) ! !f_t = 0.5_ark*(f2-f1)