Skip to content

Commit

Permalink
Data race fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkellyjak committed Aug 23, 2023
1 parent 1139556 commit 26f44c6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions SU2_CFD/src/integration/CIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ void CIntegration::Space_Integration(CGeometry *geometry,
solver_container[MainSolver]->PreprocessBC_Giles(geometry, config, conv_bound_numerics, OUTFLOW);
}

if (config->GetBoolTurbomachinery()){
/*--- Average quantities at the inflow and outflow boundaries ---*/
solver_container[MainSolver]->TurboAverageProcess(solver_container, geometry,config,INFLOW);
solver_container[MainSolver]->TurboAverageProcess(solver_container, geometry, config, OUTFLOW);
BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS {
if (config->GetBoolTurbomachinery()){
/*--- Average quantities at the inflow and outflow boundaries ---*/
solver_container[MainSolver]->TurboAverageProcess(solver_container, geometry,config,INFLOW);
solver_container[MainSolver]->TurboAverageProcess(solver_container, geometry, config, OUTFLOW);
}
}
END_SU2_OMP_SAFE_GLOBAL_ACCESS

/*--- Weak boundary conditions ---*/

Expand Down

0 comments on commit 26f44c6

Please sign in to comment.