@@ -70,41 +70,39 @@ void CDiscAdjFluidIteration::Preprocess(COutput* output, CIntegration**** integr
7070 }
7171
7272 if (TimeIter == 0 ) {
73- /* --- Push solution back one or two levels . ---*/
73+ /* --- Push solution back one level . ---*/
7474
7575 if (dual_time) {
7676 for (auto iMesh = 0u ; iMesh <= config[iZone]->GetnMGLevels (); iMesh++) {
7777 for (auto iSol = 0ul ; iSol < nSolvers; ++iSol) {
7878 solver[iZone][iInst][iMesh][solversToProcess[iSol]]->GetNodes ()->Set_Solution_time_n ();
79- if (dual_time_2nd)
80- solver[iZone][iInst][iMesh][solversToProcess[iSol]]->GetNodes ()->Set_Solution_time_n1 ();
8179 }
8280 if (grid_IsMoving) {
8381 geometries[iMesh]->nodes ->SetCoord_n ();
84- if (dual_time_2nd)
85- geometries[iMesh]->nodes ->SetCoord_n1 ();
8682 }
8783 if (config[iZone]->GetDynamic_Grid ()) {
8884 geometries[iMesh]->nodes ->SetVolume_n ();
89- if (dual_time_2nd)
90- geometries[iMesh]->nodes ->SetVolume_nM1 ();
9185 }
9286 }
9387 }
9488
95- /* --- If required load another time step. ---*/
89+ /* --- If required load another time step. Push the previous time step to n-1 and the
90+ loaded time step to n. ---*/
9691
9792 if (dual_time_2nd) {
9893 LoadUnsteady_Solution (geometry, solver, config, iZone, iInst, Direct_Iter - 1 );
9994
10095 for (auto iMesh = 0u ; iMesh <= config[iZone]->GetnMGLevels (); iMesh++) {
10196 for (auto iSol = 0ul ; iSol < nSolvers; ++iSol) {
97+ solver[iZone][iInst][iMesh][solversToProcess[iSol]]->GetNodes ()->Set_Solution_time_n1 ();
10298 solver[iZone][iInst][iMesh][solversToProcess[iSol]]->GetNodes ()->Set_Solution_time_n ();
10399 }
104100 if (grid_IsMoving) {
101+ geometries[iMesh]->nodes ->SetCoord_n1 ();
105102 geometries[iMesh]->nodes ->SetCoord_n ();
106103 }
107104 if (config[iZone]->GetDynamic_Grid ()) {
105+ geometries[iMesh]->nodes ->SetVolume_nM1 ();
108106 geometries[iMesh]->nodes ->SetVolume_n ();
109107 }
110108 }
0 commit comments