Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to start volume averaging after StartWindowIteration. #2252

Merged
merged 3 commits into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved
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();
}
}
}