<div dir="ltr">Hi all,<div><br></div><div>In r.damflood if you try to run a calculation using invalid input you get a warning WRT <a href="https://en.wikipedia.org/wiki/Courant%E2%80%93Friedrichs%E2%80%93Lewy_condition">Courant-Friedrich-Lewy stability condition</a>. If the wikipedia article is accurate and it is indeed a necessary condition for convergence wouldn't it make sense to raise a fatal error (or whatever is more appropriate) as soon as the condition isn't respected? I mean I don't see much point in running a potentially lengthy simulation that will give meaningless results. Am I wrong in this?</div><div><br></div><div>If my suggestion has indeed merit, could anyone suggest the most appropriate way to do this?I don't mind submitting a patch but I am afraid that I am not really familiar with GRASS C APIs.</div><div><br></div><div>These are the relevant lines:</div><div><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.damflood/SWE.c#L504">https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.damflood/SWE.c#L504</a><br></div><div><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.damflood/SWE.c#L708">https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.damflood/SWE.c#L708</a><br></div><div><br></div><div>thank you,</div><div>Panos</div><div><br></div></div>