Skip to content
Snippets Groups Projects
Commit a4da0852 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fixed gromacs patch to correctly pass number of threads

parent dcca11ab
No related branches found
No related tags found
No related merge requests found
......@@ -1342,7 +1342,10 @@ int Mdrunner::mdrunner()
/* detect plumed API version */
int pversion=0;
plumed_cmd(plumedmain,"getApiVersion",&pversion);
if(pversion>5) plumed_cmd(plumedmain,"setNumOMPthreads",&hw_opt.nthreads_omp);
if(pversion>5) {
int nth = gmx_omp_nthreads_get(emntDefault);
if(pversion>5) plumed_cmd(plumedmain,"setNumOMPthreads",&nth);
}
}
/* END PLUMED */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment