summaryrefslogtreecommitdiff
path: root/src/tests/md_openmp.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 11:32:17 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 11:32:17 (GMT)
commit004217257ab666cff30da8ee9f36f051180f89c0 (patch)
tree6f6159e64f6ae706f70eb1a0d7104ae73cdfa6ae /src/tests/md_openmp.c
parentec586d3aa8f9f7a23f7d8ae70a0b0578ce2fb86e (diff)
Only compile openmp code if explicitly requested.
Diffstat (limited to 'src/tests/md_openmp.c')
-rw-r--r--src/tests/md_openmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/md_openmp.c b/src/tests/md_openmp.c
index ff426c9..f9942ba 100644
--- a/src/tests/md_openmp.c
+++ b/src/tests/md_openmp.c
@@ -1,3 +1,5 @@
+#ifdef TNG_BUILD_OPENMP_EXAMPLES
+
# include <stdlib.h>
# include <stdio.h>
# include <time.h>
@@ -835,3 +837,5 @@ void update ( int np, int nd, double pos[], double vel[], double f[],
return;
}
+
+#endif
contact: Jan Huwald // Impressum