@@ -1105,11 +1105,7 @@ void DAkOmegaSSTLM::calcResiduals(const dictionary& options)
1105
1105
// get the solver performance info such as initial
1106
1106
// and final residuals
1107
1107
SolverPerformance < scalar > solverOmega = solve (omegaEqn );
1108
- if (printToScreen )
1109
- {
1110
- Info << "omega Initial residual: " << solverOmega .initialResidual () << endl
1111
- << " Final residual: " << solverOmega .finalResidual () << endl ;
1112
- }
1108
+ DAUtility ::primalResidualControl (solverOmega , printToScreen , "omega" );
1113
1109
1114
1110
DAUtility ::boundVar (allOptions_ , omega_ , printToScreen );
1115
1111
}
@@ -1146,11 +1142,7 @@ void DAkOmegaSSTLM::calcResiduals(const dictionary& options)
1146
1142
// get the solver performance info such as initial
1147
1143
// and final residuals
1148
1144
SolverPerformance < scalar > solverK = solve (kEqn );
1149
- if (printToScreen )
1150
- {
1151
- Info << "k Initial residual: " << solverK .initialResidual () << endl
1152
- << " Final residual: " << solverK .finalResidual () << endl ;
1153
- }
1145
+ DAUtility ::primalResidualControl (solverK , printToScreen , "k" );
1154
1146
1155
1147
DAUtility ::boundVar (allOptions_ , k_ , printToScreen );
1156
1148
@@ -1207,11 +1199,7 @@ void DAkOmegaSSTLM::calcResiduals(const dictionary& options)
1207
1199
// get the solver performance info such as initial
1208
1200
// and final residuals
1209
1201
SolverPerformance < scalar > solverReThetat = solve (ReThetatEqn );
1210
- if (printToScreen )
1211
- {
1212
- Info << "ReThetat Initial residual: " << solverReThetat .initialResidual () << endl
1213
- << " Final residual: " << solverReThetat .finalResidual () << endl ;
1214
- }
1202
+ DAUtility ::primalResidualControl (solverReThetat , printToScreen , "ReThetat" );
1215
1203
1216
1204
DAUtility ::boundVar (allOptions_ , ReThetat_ , printToScreen );
1217
1205
}
@@ -1259,11 +1247,7 @@ void DAkOmegaSSTLM::calcResiduals(const dictionary& options)
1259
1247
// get the solver performance info such as initial
1260
1248
// and final residuals
1261
1249
SolverPerformance < scalar > solverGammaInt = solve (gammaIntEqn );
1262
- if (printToScreen )
1263
- {
1264
- Info << "gammaInt Initial residual: " << solverGammaInt .initialResidual () << endl
1265
- << " Final residual: " << solverGammaInt .finalResidual () << endl ;
1266
- }
1250
+ DAUtility ::primalResidualControl (solverGammaInt , printToScreen , "gammaInt" );
1267
1251
1268
1252
DAUtility ::boundVar (allOptions_ , gammaInt_ , printToScreen );
1269
1253
0 commit comments