#================================================
-# Set comipiler flags for different sourcefiles
+# Set compiler flags for different sourcefiles
#================================================
if (Fortran_COMPILER_NAME STREQUAL "ifort")
set(FFLAGS0 "-mcmodel=medium -shared-intel -ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " )
elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
- set(FFLAGS0 "-std=legacy -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " )
+ set(FFLAGS0 "-std=legacy -mcmodel=medium -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " )
else ()
- set(FFLAGS0 "-I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " )
+ set(FFLAGS0 "-mcmodel=medium -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " )
endif (Fortran_COMPILER_NAME STREQUAL "ifort")
#=========================================
set (boot_lam "")
endif()
+ if (UNRES_SRUN)
+ set (np "-n")
+ set (mpiexec "srun")
+ else()
+ set (np "-np")
+ set (mpiexec "mpiexec")
+ endif()
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/cluster_wham_mpi_E0LL2Y.sh
"#!/bin/sh
export SCRATCHDIR=.
#-----------------------------------------------------------------------------
echo CTEST_FULL_OUTPUT
-mpiexec ${boot_lam} -np $2 $CLUSTER_WHAM_BIN
+${mpiexec} ${boot_lam} ${np} $2 $CLUSTER_WHAM_BIN
./cluster_wham_check.sh $1
")