-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting iout?d
to 0 for no output.
#128
Conversation
iout?d
to 0 for no output.
Excellent, thanks Mao @soaringxmc! This sounds good, I just want to do some small checks because evaluating |
Hi, Pedro! When iout0d=0: My tests show this does not cause problems. |
This program does breaks for me: integer :: a,i
a = 0
i = 10
if (a > 0.and.mod(i,a) == 0) then
print *, '1'
else
print *, '2'
end if
end when compiled with |
You are right! I also think mod(istep,max(1,out1d)) is a good solution. |
Sounds good, do you want to update your PR with this change? We should also allow for masking the post-processing of the initial conditions when the simulation starts: https://github.com/CaNS-World/CaNS/blob/main/src/main.f90#L328,L330. |
Okay. I will update my PR. |
Thanks! I see now that I can also push to your fork, so if you'd like, I can also make the changes. |
Hi, Pedro! I have updated the PR. |
Thanks Mao! I pushed some minor changes. I think this PR now also nicely addresses #121 more elegantly. |
This PR disables output when
iout[0-3]d
,icheck
, orisave
are set to0
.Closes #121, #127.