fix for MD tests in E0LL2Y FF
authorDawid Jagieła <lightnir@chem.univ.gda.pl>
Tue, 3 Jun 2014 15:16:39 +0000 (17:16 +0200)
committerDawid Jagieła <lightnir@chem.univ.gda.pl>
Tue, 3 Jun 2014 15:16:39 +0000 (17:16 +0200)
source/unres/src_MD/CMakeLists.txt
source/unres/src_MD_DFA/CMakeLists.txt

index dea499c..eeb8c45 100644 (file)
@@ -331,6 +331,13 @@ target_link_libraries( UNRES_BIN-MD xdrf )
 #=========================================
 #  test_single_ala.sh
 #=========================================
+#
+# Set parmaeters depending on force field
+if(UNRES_MD_FF STREQUAL "GAB")
+   set(UNRES_BONDPAR "bond.parm")      
+elseif(UNRES_MD_FF STREQUAL "E0LL2Y")
+   set(UNRES_BONDPAR "bond_AM1.parm")
+endif(UNRES_MD_FF STREQUAL "GAB")
 
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_single_ala.sh
 "#!/bin/sh
@@ -340,7 +347,7 @@ export PREFIX=ala10
 UNRES_BIN=./${UNRES_BIN}
 #-----------------------------------------------------------------------------
 DD=${CMAKE_SOURCE_DIR}/PARAM
-export BONDPAR=$DD/bond.parm
+export BONDPAR=$DD/${UNRES_BONDPAR}
 export THETPAR=$DD/thetaml.5parm
 export ROTPAR=$DD/scgauss.parm
 export TORPAR=$DD/torsion_631Gdp.parm
index 2af9e30..3dfd3e7 100644 (file)
@@ -317,6 +317,13 @@ target_link_libraries( UNRES_BIN-MD-DFA xdrf )
 #=========================================
 #  test_single_ala.sh
 #=========================================
+#
+# Set parmaeters depending on force field
+if(UNRES_MD_FF STREQUAL "GAB")
+   set(UNRES_BONDPAR "bond.parm")      
+elseif(UNRES_MD_FF STREQUAL "E0LL2Y")
+   set(UNRES_BONDPAR "bond_AM1.parm")
+endif(UNRES_MD_FF STREQUAL "GAB")
 
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_single_ala.sh
 "#!/bin/sh
@@ -326,7 +333,7 @@ export PREFIX=ala10
 UNRES_BIN=./${UNRES_BIN}
 #-----------------------------------------------------------------------------
 DD=${CMAKE_SOURCE_DIR}/PARAM
-export BONDPAR=$DD/bond.parm
+export BONDPAR=$DD/i${UNRES_BONDPAR}
 export THETPAR=$DD/thetaml.5parm
 export ROTPAR=$DD/scgauss.parm
 export TORPAR=$DD/torsion_631Gdp.parm