CaNS-World / CaNS

A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows
MIT License
205 stars 73 forks source link

output suggestion #127

Open soaringxmc opened 6 hours ago

soaringxmc commented 6 hours ago

Hi, Pedro! I wold suggest to replace if(mod(istep,iout1d) == 0) by if(iout1d > 0.and.mod(istep,iout1d) == 0), and also for iout0d, 2d, 3d, save. When no output is needed, we can just set iout1d=0 in input.nml. This should be more user-freindly than setting very large numbers for no output.

p-costa commented 6 hours ago

Hi Mao,

Great idea! Would you like to submit a PR? Else, I can do it next week.