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