cmake -DUNRES_SUMSLD
authorCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 20 Jul 2020 08:26:04 +0000 (10:26 +0200)
committerCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 20 Jul 2020 08:26:04 +0000 (10:26 +0200)
CMakeLists.txt
source/unres/src-HCD-5D/CMakeLists.txt
source/unres/src-HCD-5D/DIMENSIONS

index aa28480..ad13d94 100644 (file)
@@ -136,6 +136,7 @@ option(UNRES_WITH_MPI "Choose whether or not to use MPI library" ON )
 option(UNRES_DFA "Choose whether or not to use DFA" OFF )
 option(UNRES_5D "Choose whether or not to use HCD-5D" OFF )
 option(UNRES_NO5D "Choose the old code" OFF )
+option(UNRES_SUMSLD "Choose SUMSLD (ON) or LBFGS (OFF, default)" OFF )
 
 #=================================
 # MPI stuff
index 1cbe55b..a3ded26 100644 (file)
@@ -248,7 +248,11 @@ if(UNRES_DFA)
 endif(UNRES_DFA)
 
 if(UNRES_5D)
- set(CPPFLAGS "${CPPFLAGS} -DFIVEDIAG -DLBFGS" )
+ if (UNRES_SUMSLD)
+  set(CPPFLAGS "${CPPFLAGS} -DFIVEDIAG " )
+ else()
+  set(CPPFLAGS "${CPPFLAGS} -DFIVEDIAG -DLBFGS" )
+ endif()
 endif()
 
 #=========================================
@@ -313,7 +317,11 @@ if(UNRES_DFA)
  set(DFA "_DFA")
 endif()
 if(UNRES_5D)
- set(HCD-5D "_HCD-5D")
+ if (UNRES_SUMSLD)
+  set(HCD-5D "_HCD-5D-SUMSLD")
+ else()
+  set(HCD-5D "_HCD-5D")
+ endif()
 endif()
 
 if(UNRES_WITH_MPI) 
index d487351..0e0fef1 100644 (file)
@@ -60,7 +60,7 @@ C     include in template-based/contact distance restraints.
       parameter (maxcont_res=200)
 C Max. number of distance/contact-distance restraints
       integer maxdim_cont
-      parameter (maxdim_cont=maxres*1000)
+      parameter (maxdim_cont=maxres*6000)
 C Number of AA types (at present only natural AA's will be handled
       integer ntyp,ntyp1
       parameter (ntyp=24,ntyp1=ntyp+1)