#include "matio.h"
#include "gmx_ana.h"
#include "nsfactor.h"
-
-#ifdef GMX_OPENMP
-#include <omp.h>
-#endif
-
+#include "gmx_omp.h"
int gmx_sans(int argc,char *argv[])
{
{ efXVG, "-pr", "pr", ffWRITE }
};
-#ifdef GMX_OPENMP
- nthreads = omp_get_max_threads();
-#endif
+ nthreads = gmx_omp_get_max_threads();
CopyRight(stderr,argv[0]);
parse_common_args(&argc,argv,PCA_BE_NICE,
check_mcover(mcover);
/* setting number of omp threads globaly */
-#ifdef GMX_OPENMP
- omp_set_num_threads(nthreads);
-#endif
+ gmx_omp_set_num_threads(nthreads);
+
/* Now try to parse opts for modes */
switch(emethod[0][0]) {
case 'd':