File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ namespace pfasst
8686 */
8787 class IStatus
8888 {
89+ public:
90+ static const int NOT_CONVERGED = 0 ;
91+ static const int CONVERGED = 1 ;
92+
8993 protected:
9094 ICommunicator* comm;
9195
Original file line number Diff line number Diff line change 66using namespace std ;
77
88#include " pfasst/globals.hpp"
9+ #include " pfasst/logging.hpp"
910
1011
1112namespace pfasst
@@ -78,7 +79,11 @@ namespace pfasst
7879 if (this ->comm ->rank () == 0 ) {
7980 return !this ->get_converged (0 );
8081 }
81- return !this ->get_converged (this ->comm ->rank ()) || !this ->get_converged (this ->comm ->rank () - 1 );
82+ bool keep_iterating = !this ->get_converged (this ->comm ->rank () - 1 ) || !this ->get_converged (this ->comm ->rank ());
83+ CLOG (DEBUG, " Controller" ) << " previous converged: " << boolalpha << this ->get_converged (this ->comm ->rank () - 1 )
84+ << " ; this converged: " << boolalpha << this ->get_converged (this ->comm ->rank ())
85+ << " --> keep iterating: " << boolalpha << keep_iterating;
86+ return keep_iterating;
8287 }
8388
8489
You can’t perform that action at this time.
0 commit comments