@@ -1249,33 +1249,33 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
12491249
12501250 bool Unsteady = ((config[val_iZone]->GetTime_Marching () == DT_STEPPING_1ST) ||
12511251 (config[val_iZone]->GetTime_Marching () == DT_STEPPING_2ND));
1252- bool In_NoDualTime = !DualTime_Iteration;
1253- bool In_DualTime_0 = DualTime_Iteration;
1252+ bool In_NoDualTime = ( !DualTime_Iteration && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 )) ;
1253+ bool In_DualTime_0 = ( DualTime_Iteration && (iIntIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 0 ) == 0 )) ;
12541254 bool In_DualTime_1 = (!DualTime_Iteration && Unsteady);
1255- bool In_DualTime_2 = (Unsteady && DualTime_Iteration);
1256- bool In_DualTime_3 = (Unsteady && !DualTime_Iteration);
1255+ bool In_DualTime_2 = (Unsteady && DualTime_Iteration && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 ) );
1256+ bool In_DualTime_3 = (Unsteady && !DualTime_Iteration && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 ) );
12571257
12581258 /* --- Header frequency: analogy for dynamic structural analysis ---*/
12591259 /* --- DualTime_Iteration is a bool we receive, which is true if it comes from FEM_StructuralIteration and false from SU2_CFD ---*/
12601260 /* --- We maintain the name, as it is an input of the function ---*/
12611261 /* --- dynamic determines if the problem is, or not, time dependent ---*/
12621262 bool dynamic = (config[val_iZone]->GetTime_Domain ()); // Dynamic simulations.
1263- bool In_NoDynamic = !DualTime_Iteration;
1264- bool In_Dynamic_0 = DualTime_Iteration;
1263+ bool In_NoDynamic = ( !DualTime_Iteration && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 )); ;
1264+ bool In_Dynamic_0 = ( DualTime_Iteration && (iIntIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 0 ) == 0 )); ;
12651265 bool In_Dynamic_1 = (!DualTime_Iteration && nonlinear_analysis);
1266- bool In_Dynamic_2 = (nonlinear_analysis && DualTime_Iteration);
1267- bool In_Dynamic_3 = (nonlinear_analysis && !DualTime_Iteration);
1266+ bool In_Dynamic_2 = (nonlinear_analysis && DualTime_Iteration) && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 )); ;
1267+ bool In_Dynamic_3 = (nonlinear_analysis && !DualTime_Iteration) && (iExtIter % config[val_iZone]-> GetScreen_Wrt_Freq ( 2 ) == 0 )); ;
12681268
12691269 bool write_heads;
12701270 if (Unsteady) write_heads = (iIntIter == 0 );
1271- else write_heads = true ;
1271+ else write_heads = (((iExtIter % (config[val_iZone]-> GetScreen_Wrt_Freq ( 2 )* 40 )) == 0 )); ;
12721272
1273- bool write_turbo = true ;
1273+ bool write_turbo = (((iExtIter % (config[val_iZone]-> GetScreen_Wrt_Freq ( 2 )* 40 )) == 0 ) || (iExtIter == (config[val_iZone]-> GetnInner_Iter () - 1 ))); ;
12741274
12751275 /* --- Analogous for dynamic problems (as of now I separate the problems, it may be worthy to do all together later on ---*/
12761276 bool write_heads_FEM;
12771277 if (nonlinear_analysis) write_heads_FEM = (iIntIter == 0 );
1278- else write_heads_FEM = true ;
1278+ else write_heads_FEM = (((iExtIter % (config[val_iZone]-> GetScreen_Wrt_Freq ( 2 )* 40 )) == 0 )); ;
12791279
12801280 if ( (!fem && ((In_NoDualTime || In_DualTime_0 || In_DualTime_1) && (In_NoDualTime || In_DualTime_2 || In_DualTime_3))) ||
12811281 (fem && ( (In_NoDynamic || In_Dynamic_0 || In_Dynamic_1) && (In_NoDynamic || In_Dynamic_2 || In_Dynamic_3)))
0 commit comments