File tree Expand file tree Collapse file tree
Common/include/parallelization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,16 +188,14 @@ void omp_finalize();
188188 * thread, with all threads and memory views synchronized both beforehand and afterwards.
189189 */
190190
191- #define BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS \
192- SU2_OMP_BARRIER \
193- if (omp_in_parallel()) \
194- AD::StartNoSharedReading (); \
191+ #define BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS \
192+ SU2_OMP_BARRIER \
193+ if (omp_in_parallel()) AD::StartNoSharedReading(); \
195194 SU2_OMP_MASTER
196195
197- #define END_SU2_OMP_SAFE_GLOBAL_ACCESS \
198- END_SU2_OMP_MASTER \
199- if (omp_in_parallel()) \
200- AD::EndNoSharedReading (); \
196+ #define END_SU2_OMP_SAFE_GLOBAL_ACCESS \
197+ END_SU2_OMP_MASTER \
198+ if (omp_in_parallel()) AD::EndNoSharedReading(); \
201199 SU2_OMP_BARRIER
202200
203201#define SU2_OMP_SAFE_GLOBAL_ACCESS (...) BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS{__VA_ARGS__} END_SU2_OMP_SAFE_GLOBAL_ACCESS
You can’t perform that action at this time.
0 commit comments