File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ namespace symx
2525 InvalidConvergedState,
2626 };
2727
28+ // ================================================================
29+ // Callbacks
30+ // ================================================================
31+
2832 static auto default_residual = [](Eigen::VectorXd& r) { return r.cwiseAbs ().maxCoeff (); };
2933 class SolverCallbacks
3034 {
@@ -96,7 +100,11 @@ namespace symx
96100 }
97101 bool run_is_converged () {
98102 auto _t = this ->context ->logger ->time (" is_converged" );
99- return this ->_run_bool (false , this ->is_converged );
103+ bool converged = false ;
104+ for (auto & f : this ->is_converged ) {
105+ converged = f () || converged;
106+ }
107+ return converged;
100108 }
101109 bool run_is_converged_state_valid () {
102110 auto _t = this ->context ->logger ->time (" is_converged_state_valid" );
You can’t perform that action at this time.
0 commit comments