@@ -1334,6 +1334,8 @@ void CrossRate::MultiArray::run_traj ()
13341334 << " , is smaller than the reactive energy: "
13351335 << " decrease the reactive energy or change the transition state dividing surface\n " ;
13361336
1337+ IO::log.flush ();
1338+
13371339 throw Error::Run ();
13381340 }
13391341
@@ -1458,9 +1460,12 @@ int CrossRate::MultiArray::_sample (iterator mit, const std::set<DivSur::face_t
14581460 //
14591461 << " kcal/mol, is lower than the reactive energy, " << reactive_energy () / Phys_const::kcal << " \n " ;
14601462
1461- if (itemp)
1463+ if (itemp) {
14621464 //
1465+ IO::log.flush ();
1466+
14631467 throw Error::Run ();
1468+ }
14641469
14651470 int isnew = 0 ;
14661471
@@ -3150,6 +3155,8 @@ bool CrossRate::MultiArray::_work ()
31503155 //
31513156 std::cerr << funame << " reactive transition pair is not properly defined\n " ;
31523157
3158+ IO::log.flush ();
3159+
31533160 throw Error::Init ();
31543161 }
31553162
@@ -3383,6 +3390,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
33833390 //
33843391 std::cerr << funame << " too many failures for " << mit - begin () << " -th surface\n " ;
33853392
3393+ IO::log.flush ();
3394+
33863395 throw Error::Run ();
33873396 }
33883397
@@ -3392,6 +3401,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
33923401 //
33933402 std::cerr << funame << mit - begin () << " -th surface, " << sit->first << " facet: " <<" no flux samplings\n " ;
33943403
3404+ IO::log.flush ();
3405+
33953406 throw Error::Run ();
33963407 }//
33973408 //
@@ -3451,6 +3462,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
34513462 //
34523463 std::cerr << mit - begin () << " -th surface, " << sit->first << " facet: no potential samplings\n " ;
34533464
3465+ IO::log.flush ();
3466+
34543467 throw Error::Run ();
34553468 }
34563469
@@ -3464,6 +3477,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
34643477 //
34653478 << " kcal/mol\n " ;
34663479
3480+ IO::log.flush ();
3481+
34673482 throw Error::Run ();
34683483 }
34693484 }
0 commit comments