Skip to content

Commit

Permalink
Make CHeatSolver::Set_Heatflux_Areas safe for OpenMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Feb 15, 2024
1 parent d0d0c41 commit a6b058b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SU2_CFD/src/solvers/CHeatSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ void CHeatSolver::Viscous_Residual(CGeometry *geometry, CSolver **solver_contain

void CHeatSolver::Set_Heatflux_Areas(CGeometry *geometry, CConfig *config) {

BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS {

string HeatFlux_Tag, Marker_Tag;

su2double *Local_Surface_Areas, Local_HeatFlux_Areas_Monitor, Area, *Normal;
Expand Down Expand Up @@ -365,6 +367,8 @@ void CHeatSolver::Set_Heatflux_Areas(CGeometry *geometry, CConfig *config) {
}

delete[] Local_Surface_Areas;

} END_SU2_OMP_SAFE_GLOBAL_ACCESS
}

void CHeatSolver::BC_Isothermal_Wall(CGeometry *geometry, CSolver **solver_container, CNumerics *conv_numerics,
Expand Down

0 comments on commit a6b058b

Please sign in to comment.