NETCDF errors when dtmaxout equals tstop - tstart
Closed this issue · 0 comments
roeldegoede commented
Some NetCDF erros are thrown when dtmaxout equals tstop - tstart. When this is the case, the maxoutput variables are initialized with length 1, but due to a check in sfincs_lib.f90 and SFINCS tries to compute another dtmaxout interval:
if (t <= t1) then
tmaxout = tmaxout + dtmaxout
! in case the last 'dt' made us exactly past tstop time 't1',
! then we don't want to flag later another dtmax output timestep in 'finalize_output' check,
! so if t > t1 don't add 'dtmaxout' again
endif
Screenshot of the errors, note that the line-numbers do not match anymore with the line numbers of the main-branch since an older executable was run.