X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fcluster%2Fwham%2Fsrc%2FCMakeLists.txt;h=49068c4cac61938834821c705b695998d5f72e08;hb=393df3072295fbcf1bd8aeb2a9a206c1e1dde94a;hp=8669d33f6dfa2ecf58c18fe5196a60abd985cca0;hpb=40861d754229b6858ca997cebffbc084b5840e51;p=unres.git diff --git a/source/cluster/wham/src/CMakeLists.txt b/source/cluster/wham/src/CMakeLists.txt index 8669d33..49068c4 100644 --- a/source/cluster/wham/src/CMakeLists.txt +++ b/source/cluster/wham/src/CMakeLists.txt @@ -176,6 +176,15 @@ install(TARGETS UNRES_CLUSTER_WHAM_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/clust # TESTS #========================================= +# MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}") + if ("${MPI_Fortran_LIBRARIES}" MATCHES "lam") + MESSAGE (STATUS "LAM MPI library detected") + set (boot_lam "-boot") + else() + set (boot_lam "") + endif() + + FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/cluster_wham_mpi_E0LL2Y.sh "#!/bin/sh export POT=GB @@ -207,7 +216,7 @@ export SIDEP=$DD/contact.3.parm export SCRATCHDIR=. #----------------------------------------------------------------------------- echo CTEST_FULL_OUTPUT -mpiexec -np $2 $CLUSTER_WHAM_BIN +mpiexec ${boot_lam} -np $2 $CLUSTER_WHAM_BIN ./cluster_wham_check.sh $1 ")