@@ -915,41 +915,24 @@ void CSinglezoneDriver::SetInitialMesh() {
915915
916916 SU2_OMP_PARALLEL {
917917 // Overwrite fictious velocities
918- SU2_OMP_FOR_STAT (omp_chunk_size)
919- for (unsigned long iPoint = 0 ; iPoint < geometry_container[ZONE_0][INST_0][MESH_0]->GetnPointDomain (); iPoint++) {
920- for (unsigned short iDim = 0 ; iDim < geometry_container[ZONE_0][INST_0][MESH_0]->GetnDim (); iDim++) {
921- su2double GridVel = 0.0 ;
922- geometry_container[ZONE_0][INST_0][MESH_0]->nodes ->SetGridVel (iPoint, iDim, GridVel);
923- }
924- }
925-
926- geometry_container[ZONE_0][INST_0][MESH_0]->InitiateComms (geometry_container[ZONE_0][INST_0][MESH_0], config_container[ZONE_0], GRID_VELOCITY);
927- geometry_container[ZONE_0][INST_0][MESH_0]->CompleteComms (geometry_container[ZONE_0][INST_0][MESH_0], config_container[ZONE_0], GRID_VELOCITY);
928-
929- for (iMesh = 1u ; iMesh <= config_container[ZONE_0]->GetnMGLevels (); iMesh++) {
918+ for (iMesh = 0u ; iMesh <= config_container[ZONE_0]->GetnMGLevels (); iMesh++) {
930919 SU2_OMP_FOR_STAT (roundUpDiv (geometry_container[ZONE_0][INST_0][iMesh]->GetnPoint (),omp_get_max_threads ()))
931- for (unsigned long Point_Coarse = 0 ; Point_Coarse < geometry_container[ZONE_0][INST_0][iMesh]->GetnPoint (); Point_Coarse ++) {
920+ for (unsigned long iPoint = 0 ; iPoint < geometry_container[ZONE_0][INST_0][iMesh]->GetnPoint (); iPoint ++) {
932921
933922 /* --- Overwrite fictitious velocities ---*/
934923 su2double Grid_Vel[3 ] = {0.0 , 0.0 , 0.0 };
935924
936925 /* --- Set the grid velocity for this coarse node. ---*/
937- for (unsigned short iDim = 0 ; iDim < geometry_container[ZONE_0][INST_0][MESH_0]->GetnDim (); iDim++)
938- geometry_container[ZONE_0][INST_0][iMesh]->nodes ->SetGridVel (Point_Coarse, iDim, Grid_Vel[iDim]);
926+ geometry_container[ZONE_0][INST_0][iMesh]->nodes ->SetGridVel (iPoint, Grid_Vel);
939927 }
940- }
941- }
942-
943- /* --- Push back the solution so that there is no fictious velocity at the next step. ---*/
944- solver_container[ZONE_0][INST_0][MESH_0][MESH_SOL]->GetNodes ()->Set_Solution_time_n ();
945- solver_container[ZONE_0][INST_0][MESH_0][MESH_SOL]->GetNodes ()->Set_Solution_time_n1 ();
946-
947- // Push back the volume
948- for (iMesh = 0 ; iMesh <= config_container[ZONE_0]->GetnMGLevels (); iMesh++) {
928+ /* --- Push back the volume. ---*/
949929 geometry_container[ZONE_0][INST_0][iMesh]->nodes ->SetVolume_n ();
950930 geometry_container[ZONE_0][INST_0][iMesh]->nodes ->SetVolume_nM1 ();
931+ }
932+ /* --- Push back the solution so that there is no fictious velocity at the next step. ---*/
933+ solver_container[ZONE_0][INST_0][MESH_0][MESH_SOL]->GetNodes ()->Set_Solution_time_n ();
934+ solver_container[ZONE_0][INST_0][MESH_0][MESH_SOL]->GetNodes ()->Set_Solution_time_n1 ();
951935 }
952-
953936}
954937
955938void CFluidDriver::SetVertexTtotal (unsigned short iMarker, unsigned long iVertex, passivedouble val_Ttotal_passive){
0 commit comments