Hi, Dr. Cox and Dr. Treeby,
I found that the condition for prompting the warning "time step may be too large for a stable simulation" is:
dt > DT_WARNING_CFL*max([kgrid.dz, kgrid.dx, kgrid.dy])/max(medium.sound_speed(:))
But in my opinion, "min([kgrid.dz, kgrid.dx, kgrid.dy])" should be used instead of "max([kgrid.dz, kgrid.dx, kgrid.dy])", because for a fixed "DT_WARNING_CFL", "dt" should be less than "DT_WARNING_CFL*min([kgrid.dz, kgrid.dx, kgrid.dy])/max(medium.sound_speed(:))". I don't know if this is right?
Another thing I want to make sure is that if the simulation is stable as long as "DT_WARNING_CFL<1".
Thank you very much!
Best,
Chao