@@ -182,10 +182,7 @@ void CMultizoneDriver::StartSolver() {
182182
183183 /* --- Run a block iteration of the multizone problem. ---*/
184184
185- switch (driver_config->GetKind_MZSolver ()){
186- case ENUM_MULTIZONE::MZ_BLOCK_GAUSS_SEIDEL: RunGaussSeidel (); break ; // Block Gauss-Seidel iteration
187- case ENUM_MULTIZONE::MZ_BLOCK_JACOBI: RunJacobi (); break ; // Block-Jacobi iteration
188- }
185+ Run ();
189186
190187 /* --- Update the solution for dual time stepping strategy ---*/
191188
@@ -646,11 +643,11 @@ void CMultizoneDriver::SetTurboPerformance() {
646643 }
647644}
648645
649- bool CMultizoneDriver::Monitor (unsigned long TimeIter){
646+ bool CMultizoneDriver::Monitor (unsigned long TimeIter) {
650647
651648 /* --- Check whether the inner solver has converged --- */
652649
653- if (driver_config->GetTime_Domain () == NO){
650+ if (driver_config->GetTime_Domain () == NO) {
654651
655652 const auto OuterIter = driver_config->GetOuterIter ();
656653 const auto nOuterIter = driver_config->GetnOuter_Iter ();
@@ -670,29 +667,27 @@ bool CMultizoneDriver::Monitor(unsigned long TimeIter){
670667 }
671668 // i.e. unsteady simulation
672669
673- /* --- Check whether the outer time integration has reached the final time ---*/
674- const auto TimeConvergence = GetTimeConvergence ();
670+ /* --- Check whether the outer time integration has reached the final time. ---*/
671+ const auto TimeConvergence = GetTimeConvergence ();
675672
676- const auto nTimeIter = driver_config->GetnTime_Iter ();
677- const auto MaxTime = driver_config->GetMax_Time ();
678- const auto CurTime = driver_output->GetHistoryFieldValue (" CUR_TIME" );
673+ const auto nTimeIter = driver_config->GetnTime_Iter ();
674+ const auto MaxTime = driver_config->GetMax_Time ();
675+ const auto CurTime = driver_output->GetHistoryFieldValue (" CUR_TIME" );
679676
680- const bool FinalTimeReached = (CurTime >= MaxTime);
681- const bool MaxIterationsReached = (TimeIter+1 >= nTimeIter);
677+ const bool FinalTimeReached = (CurTime >= MaxTime);
678+ const bool MaxIterationsReached = (TimeIter+1 >= nTimeIter);
682679
683- if ((TimeConvergence || FinalTimeReached || MaxIterationsReached) && (rank == MASTER_NODE)){
684- cout << " \n ----------------------------- Solver Exit -------------------------------" ;
685- if (TimeConvergence) cout << " \n All windowed time-averaged convergence criteria are fullfilled." << endl;
686- if (FinalTimeReached) cout << " \n Maximum time reached (MAX_TIME = " << MaxTime << " s)." << endl;
687- else cout << " \n Maximum number of time iterations reached (TIME_ITER = " << nTimeIter << " )." << endl;
688- cout << " -------------------------------------------------------------------------" << endl;
689- }
690-
691- return (FinalTimeReached || MaxIterationsReached);
692-
680+ if ((TimeConvergence || FinalTimeReached || MaxIterationsReached) && (rank == MASTER_NODE)){
681+ cout << " \n ----------------------------- Solver Exit -------------------------------" ;
682+ if (TimeConvergence) cout << " \n All windowed time-averaged convergence criteria are fullfilled." << endl;
683+ if (FinalTimeReached) cout << " \n Maximum time reached (MAX_TIME = " << MaxTime << " s)." << endl;
684+ else cout << " \n Maximum number of time iterations reached (TIME_ITER = " << nTimeIter << " )." << endl;
685+ cout << " -------------------------------------------------------------------------" << endl;
686+ }
693687
694- if (rank == MASTER_NODE) SetTurboPerformance ();
688+ if (rank == MASTER_NODE && driver_config-> GetBoolTurbomachinery () ) SetTurboPerformance ();
695689
690+ return (FinalTimeReached || MaxIterationsReached);
696691}
697692
698693bool CMultizoneDriver::GetTimeConvergence () const {
0 commit comments