Skip to content

Commit 30184d3

Browse files
committed
fix directdiff compilation with OpenMP
1 parent 6118dff commit 30184d3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

SU2_CFD/src/solvers/CFEASolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,7 @@ void CFEASolver::Compute_NodalStress(CGeometry *geometry, CNumerics **numerics,
13181318
AD::EndPassive(wasActive);
13191319

13201320
} // end iElem loop
1321-
SU2_OMP_ATOMIC
1322-
StressPenalty += stressPen;
1321+
atomicAdd(stressPen, StressPenalty);
13231322

13241323
} // end color loop
13251324

0 commit comments

Comments
 (0)