Skip to content

Commit 527357d

Browse files
committed
get rid of Werror
1 parent 63bf74c commit 527357d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,17 +3289,16 @@ bool CFlowOutput::WriteVolume_Output(CConfig *config, unsigned long Iter, bool f
32893289
return true;
32903290
}
32913291

3292-
/* check if we want to write a restart file*/
3293-
if (FileFormat[iFile] == OUTPUT_TYPE::RESTART_ASCII ||
3294-
FileFormat[iFile] == OUTPUT_TYPE::RESTART_BINARY ||
3295-
FileFormat[iFile] == OUTPUT_TYPE::CSV)
3296-
writeRestart = true;
3292+
/* check if we want to write a restart file*/
3293+
if (FileFormat[iFile] == OUTPUT_TYPE::RESTART_ASCII || FileFormat[iFile] == OUTPUT_TYPE::RESTART_BINARY || FileFormat[iFile] == OUTPUT_TYPE::CSV) {
3294+
writeRestart = true;
3295+
}
32973296

32983297
/* only write 'double' files for the restart files */
32993298
if ((config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_2ND) &&
3300-
((Iter == 0) || (Iter % VolumeFrequencies[iFile] == 0) ||
3301-
(((Iter+1) % VolumeFrequencies[iFile] == 0) && writeRestart==true) || // Restarts need 2 old solutions.
3302-
(((Iter+2) == config->GetnTime_Iter()) && writeRestart==true))){ // The last timestep is written anyway but one needs the step before for restarts.
3299+
((Iter == 0) || (Iter % VolumeFrequencies[iFile] == 0) ||
3300+
(((Iter+1) % VolumeFrequencies[iFile] == 0) && writeRestart==true) || // Restarts need 2 old solutions.
3301+
(((Iter+2) == config->GetnTime_Iter()) && writeRestart==true))){ // The last timestep is written anyway but one needs the step before for restarts.
33033302
return true;
33043303
}
33053304
} else {

0 commit comments

Comments
 (0)