Skip to content

Commit

Permalink
modgenstat: add diagnostic prints when dtav and timeav don't match
Browse files Browse the repository at this point in the history
  • Loading branch information
fjansson committed Nov 11, 2024
1 parent 57ae605 commit f2a1d0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modgenstat.f90
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ subroutine initgenstat
dt_lim = min(dt_lim,tnext)

if (abs(timeav/dtav-nsamples)>1e-4) then
write (*,*) timeav, dtav, nsamples, timeav/dtav-nsamples
write (*,*) itimeav, idtav
stop 'NAMGENSTAT: timeav must be a integer multiple of dtav'
end if

Expand Down

0 comments on commit f2a1d0e

Please sign in to comment.