Skip to content

Commit

Permalink
openbc: remove call to boundary on init, warn if synturb parameters a…
Browse files Browse the repository at this point in the history
…re bad
  • Loading branch information
fjansson committed Dec 9, 2024
1 parent c7d95e1 commit 10c9cc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/modstartup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,6 @@ subroutine readinitfiles

call thermodynamics
call surface
call boundary

if ( lopenbc ) then
call openboundary_ghost()
Expand Down
3 changes: 3 additions & 0 deletions src/modsynturb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ subroutine initsynturb
nxturb = int(dx/dxturb*real(itot));
nyturb = int(dy/dyturb*real(jtot));
nzturb = kmax
if (nxturb < 1 .or. nyturb < 1) then
STOP 'nxturb or nyturb < 1, perhaps dxturb or dyturb is too large.'
end if
lambdas = merge(lambda,lambdas,lambdas==-1.)
lambdasxyz = (/merge(lambdas,lambdas_x,lambdas_x==-1.), &
& merge(lambdas,lambdas_y,lambdas_y==-1.), &
Expand Down

0 comments on commit 10c9cc2

Please sign in to comment.