From 3bf969247ddc88c2255b5f1a2a76efe4cc331184 Mon Sep 17 00:00:00 2001
From: carlocamilloni <carlo.camilloni@gmail.com>
Date: Fri, 12 Oct 2018 15:01:35 +0200
Subject: [PATCH] OpenMP: clearDeriv using standardNUM of openMP thread

---
 src/core/ActionWithValue.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/ActionWithValue.cpp b/src/core/ActionWithValue.cpp
index 98d1c0810..7a921ddbd 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
-- 
GitLab