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

Bugfix for a call to LoadUnsteady_Solution in CDiscAdjFluidIteration::Preprocess #1638

Merged
merged 2 commits into from
May 19, 2022
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/iteration/CDiscAdjFluidIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void CDiscAdjFluidIteration::Preprocess(COutput* output, CIntegration**** integr

/*--- Load solution timestep n ---*/

LoadUnsteady_Solution(geometry, solver, config, iInst, iZone, Direct_Iter);
LoadUnsteady_Solution(geometry, solver, config, iZone, iInst, Direct_Iter);

if (config[iZone]->GetDeform_Mesh()) {
solvers0[MESH_SOL]->LoadRestart(geometries, solver[iZone][iInst], config[iZone], Direct_Iter, true);
Expand Down Expand Up @@ -147,9 +147,9 @@ void CDiscAdjFluidIteration::Preprocess(COutput* output, CIntegration**** integr

/*--- Load solution timestep n-1 | n-2 for DualTimestepping 1st | 2nd order ---*/
if (dual_time_1st) {
LoadUnsteady_Solution(geometry, solver, config, iInst, iZone, Direct_Iter - 1);
LoadUnsteady_Solution(geometry, solver, config, iZone, iInst, Direct_Iter - 1);
} else {
LoadUnsteady_Solution(geometry, solver, config, iInst, iZone, Direct_Iter - 2);
LoadUnsteady_Solution(geometry, solver, config, iZone, iInst, Direct_Iter - 2);

/*--- Set volumes into correct containers ---*/
if (config[iZone]->GetDynamic_Grid()) {
Expand Down