From a7b92fba2e838d9ea83eb3e86e67d530ffaaf4e7 Mon Sep 17 00:00:00 2001 From: roryslange Date: Sun, 8 Dec 2024 12:25:00 -0500 Subject: [PATCH] add call to other directive condition --- src/CalculateEnergy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalculateEnergy.cpp b/src/CalculateEnergy.cpp index 6e97da7d2..795701650 100644 --- a/src/CalculateEnergy.cpp +++ b/src/CalculateEnergy.cpp @@ -332,7 +332,7 @@ SystemPotential CalculateEnergy::BoxForce(SystemPotential potential, reduction(+:tempREn, tempLJEn, aForcex[:atomCount], aForcey[:atomCount], \ aForcez[:atomCount], mForcex[:molCount], mForcey[:molCount], mForcez[:molCount]) #else - #pragma omp parallel for default(none) shared(boxAxes, cellStartIndex, \ + #pragma omp parallel for collapse(3) schedule(dynamic) default(none) shared(boxAxes, cellStartIndex, \ cellVector, coords, mapParticleToCell, neighborList) \ reduction(+:tempREn, tempLJEn, aForcex[:atomCount], aForcey[:atomCount], \ aForcez[:atomCount], mForcex[:molCount], mForcey[:molCount], mForcez[:molCount])