YasserSelima
Subscriber
HinDefine a global variable likenint my_convergence_variable=0;nThen write a function to report this variable nDEFINE_REPORT_DEFINITION_FN(my_convergence_function)n{n return my_convergence_variable;n}nThen when you need to stop inside any functionnif (condition){n my_convergence_variable=1;n}nThen. before you start simulations go to Residuals,>Convergence criteria ... Now you should find your variable in the list ... put the condition ... n