Skip to content

Commit

Permalink
Add namelist section to error message 'timeav must be a integer multi…
Browse files Browse the repository at this point in the history
…ple of dtav'
  • Loading branch information
fjansson committed Nov 11, 2024
1 parent 6404481 commit 57ae605
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/modbudget.f90
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ subroutine initbudget
dt_lim = min(dt_lim,tnext)

if (abs(timeav/dtav-nsamples)>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMBUDGET: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and.abs( dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMBUDGET: dtav should be a integer multiple of dtmax'
end if

!time averaged fields, resolved TKE
Expand Down
2 changes: 1 addition & 1 deletion src/modgenstat.f90
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ subroutine initgenstat
dt_lim = min(dt_lim,tnext)

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

allocate(umn(k1),vmn(k1),wmn(k1))
Expand Down
4 changes: 2 additions & 2 deletions src/modlsmstat.f90
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ subroutine initlsmstat
dt_lim = min(dt_lim,tnext)

if (abs(timeav/dtav-nsamples)>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMLSMSTAT: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMLSMSTAT: dtav should be a integer multiple of dtmax'
end if

if (isurf == 1) then
Expand Down
4 changes: 2 additions & 2 deletions src/modquadrant.f90
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ subroutine initquadrant
tnextwrite = itimeav + btime

if (abs(timeav/dtav-nint(timeav/dtav))>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMquadrant: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMquadrant: dtav should be a integer multiple of dtmax'
end if

nvar = 22 + 4 * nsv
Expand Down
4 changes: 2 additions & 2 deletions src/modradfield.f90
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ subroutine initradfield


if (abs(timeav/dtav-nsamples)>1e-4) then
stop 'radfield timeav must be a integer multiple of dtav'
stop 'NAMRADFIELD: timeav must be a integer multiple of dtav'
end if

if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'radfield dtav should be a integer multiple of dtmax'
stop 'NAMRADFIELD: dtav should be a integer multiple of dtmax'
end if

allocate(field_2D_mn(2-ih:i1+ih,2-jh:j1+jh,nvar))
Expand Down
4 changes: 2 additions & 2 deletions src/modradstat.f90
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ subroutine initradstat
dt_lim = min(dt_lim,tnext)

if (abs(timeav/dtav-nsamples)>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMRADSTAT: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMRADSTAT: dtav should be a integer multiple of dtmax'
end if

allocate(lwuav(k1))
Expand Down
4 changes: 2 additions & 2 deletions src/modsampling.f90
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ subroutine initsampling
tnextwrite = itimeav +btime

if (abs(timeav/dtav-nint(timeav/dtav))>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMSAMPLING: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMSAMPLING: dtav should be a integer multiple of dtmax'
end if

allocate( wfavl (k1,isamptot),thlfavl (k1,isamptot),thvfavl (k1,isamptot), &
Expand Down
6 changes: 3 additions & 3 deletions src/modsamptend.f90
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ subroutine initsamptend


if (abs(timeav/dtav-nint(timeav/dtav))>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'modsamptend: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and. abs(dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'modsamptend: dtav should be a integer multiple of dtmax'
end if

if (ltenddec .and. .not. lprocblock) then
stop 'ltenddec is only intended to be used to complement processor-averaged budgets'
stop 'modsamptend: ltenddec is only intended to be used to complement processor-averaged budgets'
end if

if (lsamptendu) allocate (uptm(k1,nrfields,isamptot), upmn(k1,nrfields,isamptot), upav(k1,nrfields,isamptot), ust(k1,isamptot))
Expand Down
4 changes: 2 additions & 2 deletions src/modvarbudget.f90
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ subroutine initvarbudget
dt_lim = min(dt_lim,tnext)

if (abs(timeav/dtav-nsamples)>1e-4) then
stop 'timeav must be a integer multiple of dtav'
stop 'NAMVARBUDGET: timeav must be a integer multiple of dtav'
end if
if (.not. ladaptive .and.abs( dtav/dtmax-nint(dtav/dtmax))>1e-4) then
stop 'dtav should be a integer multiple of dtmax'
stop 'NAMVARBUDGET: dtav should be a integer multiple of dtmax'
end if

allocate(thl2fav (k1))
Expand Down

0 comments on commit 57ae605

Please sign in to comment.