<div dir="ltr"><div>Dear community,</div><div><br></div><div>I thought it may be of interest to some, sharing this bit of code to trap NaN generation without debug options (as these cause issues with other routines at runtime)</div><div><br></div><div> Adding simply:</div><div> <br></div><div>      IF ( ISNAN(sumRHS)) THEN<br>        ERROR STOP 'NaN generated! Stopping here.'<br>      END IF</div><div><br></div><div>at the end of <i>cg2d.F</i> seems to do the job nicely. <br></div><div>The modified routine is attached.</div><div><br></div><div>Best regards,</div><div><br></div><div>Enrico<br></div></div>