Skip to content

Commit

Permalink
removed critical statement
Browse files Browse the repository at this point in the history
  • Loading branch information
abaillod committed Apr 26, 2024
1 parent 0acc4ae commit 1d4ff32
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/simsoptpp/surfacerzfourier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ Array SurfaceRZFourier<Array>::dgamma_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand All @@ -558,7 +558,7 @@ Array SurfaceRZFourier<Array>::dgamma_by_dcoeff_vjp(Array& v) {
for (int i = 0; i < num_dofs(); ++i) {
resptr_private[i] = 0.;
}
#pragma omp for ordered
#pragma omp for
for (int k1 = 0; k1 < numquadpoints_phi; ++k1) {
double phi = 2*M_PI*quadpoints_phi[k1];
double sinphi = sin(phi);
Expand Down Expand Up @@ -613,7 +613,7 @@ Array SurfaceRZFourier<Array>::dgamma_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand Down Expand Up @@ -752,7 +752,7 @@ Array SurfaceRZFourier<Array>::dgammadash1_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand Down Expand Up @@ -834,7 +834,7 @@ Array SurfaceRZFourier<Array>::dgammadash1_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand Down Expand Up @@ -1084,7 +1084,7 @@ Array SurfaceRZFourier<Array>::dgammadash2_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand Down Expand Up @@ -1166,7 +1166,7 @@ Array SurfaceRZFourier<Array>::dgammadash2_by_dcoeff_vjp(Array& v) {
#pragma omp for ordered
for( int t=0; t<omp_get_num_threads(); ++t )
{
#pragma omp ordered critical
#pragma omp ordered
{
for(int i=0; i<num_dofs(); ++i) {
resptr[i] += resptr_private[i];
Expand Down

0 comments on commit 1d4ff32

Please sign in to comment.