biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added Verlet scheme and NxN non-bonded functionality
[alexxy/gromacs.git]
/
src
/
gmxlib
/
gmx_omp.c
diff --git
a/src/gmxlib/gmx_omp.c
b/src/gmxlib/gmx_omp.c
index a5040dce0af315075de0a53d967a383844d7e9c3..e5c1f4540b4c0ab2d330f7c362f53a6a938cfa75 100644
(file)
--- a/
src/gmxlib/gmx_omp.c
+++ b/
src/gmxlib/gmx_omp.c
@@
-41,6
+41,14
@@
int gmx_omp_get_max_threads(void)
#endif
}
+int gmx_omp_get_num_procs(void)
+{
+#ifdef GMX_OPENMP
+ return omp_get_num_procs();
+#else
+ return 1;
+#endif
+}
int gmx_omp_get_thread_num(void)
{