@@ -815,7 +815,7 @@ void CIncEulerSolver::SetNondimensionalization(CConfig *config, unsigned short i
815815
816816void CIncEulerSolver::SetInitialCondition (CGeometry **geometry, CSolver ***solver_container, CConfig *config, unsigned long TimeIter) {
817817
818- const bool restart = (config->GetRestart () || config->GetRestart_Flow ());
818+ const bool restart = (config->GetRestart () || config->GetRestart_Flow ());
819819 const bool rans = (config->GetKind_Turb_Model () != NONE);
820820 const bool dual_time = ((config->GetTime_Marching () == DT_STEPPING_1ST) ||
821821 (config->GetTime_Marching () == DT_STEPPING_2ND));
@@ -824,10 +824,8 @@ void CIncEulerSolver::SetInitialCondition(CGeometry **geometry, CSolver ***solve
824824
825825 SU2_OMP_PARALLEL {
826826
827- unsigned long iPoint, Point_Fine;
828- unsigned short iMesh, iChildren, iVar;
829- su2double Area_Children, Area_Parent;
830- const su2double *Solution_Fine;
827+ unsigned long iPoint;
828+ unsigned short iMesh;
831829
832830 /* --- Check if a verification solution is to be computed. ---*/
833831 if ((VerificationSolution) && (TimeIter == 0 ) && !restart) {
@@ -851,56 +849,6 @@ void CIncEulerSolver::SetInitialCondition(CGeometry **geometry, CSolver ***solve
851849 }
852850 }
853851
854- /* --- If restart solution, then interpolate the flow solution to
855- all the multigrid levels, this is important with the dual time strategy ---*/
856-
857- if (restart && (TimeIter == 0 )) {
858-
859- for (iMesh = 1 ; iMesh <= config->GetnMGLevels (); iMesh++) {
860- SU2_OMP_FOR_STAT (omp_chunk_size)
861- for (iPoint = 0 ; iPoint < geometry[iMesh]->GetnPoint (); iPoint++) {
862- Area_Parent = geometry[iMesh]->nodes ->GetVolume (iPoint);
863- su2double Solution[MAXNVAR] = {0.0 };
864- for (iChildren = 0 ; iChildren < geometry[iMesh]->nodes ->GetnChildren_CV (iPoint); iChildren++) {
865- Point_Fine = geometry[iMesh]->nodes ->GetChildren_CV (iPoint, iChildren);
866- Area_Children = geometry[iMesh-1 ]->nodes ->GetVolume (Point_Fine);
867- Solution_Fine = solver_container[iMesh-1 ][FLOW_SOL]->GetNodes ()->GetSolution (Point_Fine);
868- for (iVar = 0 ; iVar < nVar; iVar++) {
869- Solution[iVar] += Solution_Fine[iVar]*Area_Children/Area_Parent;
870- }
871- }
872- solver_container[iMesh][FLOW_SOL]->GetNodes ()->SetSolution (iPoint,Solution);
873- }
874- solver_container[iMesh][FLOW_SOL]->InitiateComms (geometry[iMesh], config, SOLUTION);
875- solver_container[iMesh][FLOW_SOL]->CompleteComms (geometry[iMesh], config, SOLUTION);
876- }
877-
878- /* --- Interpolate the turblence variable also, if needed ---*/
879-
880- if (rans) {
881-
882- unsigned short nVar_Turb = solver_container[MESH_0][TURB_SOL]->GetnVar ();
883- for (iMesh = 1 ; iMesh <= config->GetnMGLevels (); iMesh++) {
884- for (iPoint = 0 ; iPoint < geometry[iMesh]->GetnPoint (); iPoint++) {
885- Area_Parent = geometry[iMesh]->nodes ->GetVolume (iPoint);
886- su2double Solution[MAXNVAR] = {0.0 };
887- for (iChildren = 0 ; iChildren < geometry[iMesh]->nodes ->GetnChildren_CV (iPoint); iChildren++) {
888- Point_Fine = geometry[iMesh]->nodes ->GetChildren_CV (iPoint, iChildren);
889- Area_Children = geometry[iMesh-1 ]->nodes ->GetVolume (Point_Fine);
890- Solution_Fine = solver_container[iMesh-1 ][TURB_SOL]->GetNodes ()->GetSolution (Point_Fine);
891- for (iVar = 0 ; iVar < nVar_Turb; iVar++) {
892- Solution[iVar] += Solution_Fine[iVar]*Area_Children/Area_Parent;
893- }
894- }
895- solver_container[iMesh][TURB_SOL]->GetNodes ()->SetSolution (iPoint,Solution);
896- }
897- solver_container[iMesh][TURB_SOL]->InitiateComms (geometry[iMesh], config, SOLUTION_EDDY);
898- solver_container[iMesh][TURB_SOL]->CompleteComms (geometry[iMesh], config, SOLUTION_EDDY);
899- solver_container[iMesh][TURB_SOL]->Postprocessing (geometry[iMesh], solver_container[iMesh], config, iMesh);
900- }
901- }
902- }
903-
904852 /* --- The value of the solution for the first iteration of the dual time ---*/
905853
906854 if (dual_time && (TimeIter == 0 || (restart && TimeIter == config->GetRestart_Iter ()))) {
0 commit comments