Skip to content

Commit

Permalink
Merge pull request #2252 from ShiheJia/feature_TimeAverage
Browse files Browse the repository at this point in the history
Update to start volume averaging after StartWindowIteration.
  • Loading branch information
pcarruscag authored Apr 18, 2024
2 parents 95eafd0 + 173672b commit 95ccddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void COutput::SetHistoryOutput(CGeometry *geometry,
unsigned long InnerIter) {

curTimeIter = TimeIter;
curAbsTimeIter = TimeIter - config->GetRestart_Iter();
curAbsTimeIter = max(TimeIter, config->GetStartWindowIteration()) - config->GetStartWindowIteration();
curOuterIter = OuterIter;
curInnerIter = InnerIter;

Expand Down Expand Up @@ -258,7 +258,7 @@ void COutput::SetHistoryOutput(CGeometry ****geometry, CSolver *****solver, CCon
void COutput::SetMultizoneHistoryOutput(COutput **output, CConfig **config, CConfig *driver_config, unsigned long TimeIter, unsigned long OuterIter){

curTimeIter = TimeIter;
curAbsTimeIter = TimeIter - driver_config->GetRestart_Iter();
curAbsTimeIter = max(TimeIter, driver_config->GetStartWindowIteration()) - driver_config->GetStartWindowIteration();
curOuterIter = OuterIter;

/*--- Retrieve residual and extra data -----------------------------------------------------------------*/
Expand Down Expand Up @@ -2414,4 +2414,4 @@ void COutput::PrintVolumeFields(){

VolumeFieldTable.PrintFooter();
}
}
}

0 comments on commit 95ccddd

Please sign in to comment.