diff --git a/src/core/ActionWithValue.cpp b/src/core/ActionWithValue.cpp index 98d1c0810f31e0dc167cdcb0ef145e47f18dad7b..7a921ddbd941188b27365e8ad3d526823a80cd8c 100644 --- a/src/core/ActionWithValue.cpp +++ b/src/core/ActionWithValue.cpp @@ -70,7 +70,7 @@ void ActionWithValue::clearInputForces() { } void ActionWithValue::clearDerivatives() { - unsigned nt = OpenMP::getGoodNumThreads(values); + unsigned nt = OpenMP::getNumThreads(values); #pragma omp parallel num_threads(nt) { #pragma omp for