Skip to content

Commit 912642b

Browse files
adding brackets
1 parent 1c44044 commit 912642b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

SU2_CFD/src/output/CFlowIncOutput.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,13 @@ void CFlowIncOutput::SetHistoryOutputFields(CConfig *config){
135135
if (nDim == 3)
136136
AddHistoryOutput("MAX_VELOCITY-Z", "max[W]", ScreenOutputFormat::FIXED, "MAX_RES", "Maximum residual of the velocity z-component.", HistoryFieldType::RESIDUAL);
137137
/// DESCRIPTION: Maximum residual of the temperature.
138-
if (heat || weakly_coupled_heat)
138+
if (heat || weakly_coupled_heat) {
139139
if (multicomponent){
140140
AddHistoryOutput("MAX_ENTHALPY", "max[h]", ScreenOutputFormat::FIXED, "MAX_RES", "Maximum residual of the enthalpy.", HistoryFieldType::RESIDUAL);
141141
} else {
142142
AddHistoryOutput("MAX_TEMPERATURE", "max[T]", ScreenOutputFormat::FIXED, "MAX_RES", "Maximum residual of the temperature.", HistoryFieldType::RESIDUAL);
143143
}
144+
}
144145

145146
AddHistoryOutputFields_ScalarMAX_RES(config);
146147
/// END_GROUP
@@ -156,12 +157,13 @@ void CFlowIncOutput::SetHistoryOutputFields(CConfig *config){
156157
if (nDim == 3)
157158
AddHistoryOutput("BGS_VELOCITY-Z", "bgs[W]", ScreenOutputFormat::FIXED, "BGS_RES", "BGS residual of the velocity z-component.", HistoryFieldType::RESIDUAL);
158159
/// DESCRIPTION: Maximum residual of the temperature.
159-
if (heat || weakly_coupled_heat)
160+
if (heat || weakly_coupled_heat) {
160161
if (multicomponent){
161162
AddHistoryOutput("BGS_ENTHALPY", "bgs[h]", ScreenOutputFormat::FIXED, "BGS_RES", "BGS residual of the enthalpy.", HistoryFieldType::RESIDUAL);
162163
} else {
163164
AddHistoryOutput("BGS_TEMPERATURE", "bgs[T]", ScreenOutputFormat::FIXED, "BGS_RES", "BGS residual of the temperature.", HistoryFieldType::RESIDUAL);
164165
}
166+
}
165167

166168
AddHistoryOutputFields_ScalarBGS_RES(config);
167169

@@ -462,9 +464,10 @@ void CFlowIncOutput::LoadVolumeData(CConfig *config, CGeometry *geometry, CSolve
462464
SetVolumeOutputValue("RES_VELOCITY-Y", iPoint, solver[FLOW_SOL]->LinSysRes(iPoint, 2));
463465
if (nDim == 3)
464466
SetVolumeOutputValue("RES_VELOCITY-Z", iPoint, solver[FLOW_SOL]->LinSysRes(iPoint, 3));
465-
if (config->GetEnergy_Equation())
467+
if (config->GetEnergy_Equation()) {
466468
if (multicomponent) SetVolumeOutputValue("RES_ENTHALPY", iPoint, solver[FLOW_SOL]->LinSysRes(iPoint, nDim+1));
467469
else SetVolumeOutputValue("RES_TEMPERATURE", iPoint, solver[FLOW_SOL]->LinSysRes(iPoint, nDim+1));
470+
}
468471

469472
if (config->GetKind_SlopeLimit_Flow() != LIMITER::NONE && config->GetKind_SlopeLimit_Flow() != LIMITER::VAN_ALBADA_EDGE) {
470473
SetVolumeOutputValue("LIMITER_PRESSURE", iPoint, Node_Flow->GetLimiter_Primitive(iPoint, 0));

0 commit comments

Comments
 (0)