#=========================================
add_executable(MAXLIK ${MAXLIK_SRCS} )
set_target_properties(MAXLIK PROPERTIES OUTPUT_NAME ${MAXLIK_BIN})
+ set_property(TARGET MAXLIK PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
#=========================================
-# Install Path
+# Install maxlik binary (used by "make install")
#=========================================
+ install(TARGETS MAXLIK DESTINATION ${CMAKE_INSTALL_PREFIX})
+install(TARGETS MAXLIK RUNTIME DESTINATION unrespack/bin)
C 18/07/06 MC: Use the convention that the first nss pairs are SS bonds
if (.not.dyn_ss .and. i.le.nss) then
C 15/02/13 CC dynamic SSbond - additional check
++<<<<<<< HEAD
+ if (ii.gt.nres .and. iabs(itype(iii)).eq.1 .and.
+ & iabs(itype(jjj)).eq.1) then
++=======
+ if (ii.gt.nres
+ & .and. itype(iii).eq.1 .and. itype(jjj).eq.1) then
++>>>>>>> prerelease-3.2.1
call ssbond_ene(iii,jjj,eij)
ehpb=ehpb+2*eij
+ endif
cd write (iout,*) "eij",eij
+ endif
else
C Calculate the distance between the two points and its difference from the
C target distance.
export POT=GB
export PREFIX=ala10
#-----------------------------------------------------------------------------
- UNRES_BIN=./${UNRES_BIN}
+ UNRES_BIN=${CMAKE_BINARY_DIR}/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
double precision v1sccor,v2sccor,vlor1sccor,
& vlor2sccor,vlor3sccor,gloc_sc,
& dcostau,dsintau,dtauangle,dcosomicron,
- & domicron
+ & domicron,v0sccor
integer nterm_sccor,isccortyp,nsccortyp,nlor_sccor
- common/sccor/v1sccor(maxterm_sccor,3,20,20),
- & v2sccor(maxterm_sccor,3,20,20),
+ common/sccor/v1sccor(maxterm_sccor,3,-ntyp:ntyp,-ntyp:ntyp),
+ & v2sccor(maxterm_sccor,3,-ntyp:ntyp,-ntyp:ntyp),
+ & v0sccor(maxterm_sccor,-ntyp:ntyp,-ntyp:ntyp),
+ & nterm_sccor(-ntyp:ntyp,-ntyp:ntyp),isccortyp(-ntyp:ntyp),
+ & nsccortyp,
+ & nlor_sccor(-ntyp:ntyp,-ntyp:ntyp),
& vlor1sccor(maxterm_sccor,20,20),
& vlor2sccor(maxterm_sccor,20,20),
& vlor3sccor(maxterm_sccor,20,20),gloc_sc(3,0:maxres2,10),
# Set comipiler flags for different sourcefiles
#================================================
if (Fortran_COMPILER_NAME STREQUAL "ifort")
- set(FFLAGS0 "-mcmodel=medium -g -CB -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" )
+ set(FFLAGS0 "-mcmodel=large -g -CB -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" )
elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
set(FFLAGS0 "-std=legacy -g -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" )
+ else ()
+ set(FFLAGS0 "-g -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" )
endif (Fortran_COMPILER_NAME STREQUAL "ifort")
#=========================================
-# Build the binaries
+# Build the binaries (used by "make")
#=========================================
add_executable(xdrf2pdb ${UNRES_XDRF_XDRF2PDB_SRC} )
+ set_property(TARGET xdrf2pdb PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
target_link_libraries( xdrf2pdb xdrf )
add_executable(xdrf2pdb-m ${UNRES_XDRF_XDRF2PDB-M_SRC} )
#=========================================
- # INSTALL (used by "make install")
+ # Install Path
#=========================================
- install(TARGETS xdrf2pdb RUNTIME DESTINATION unrespack/bin)
- install(TARGETS xdrf2pdb-m RUNTIME DESTINATION unrespack/bin)
- install(TARGETS xdrf2x RUNTIME DESTINATION unrespack/bin)
- install(TARGETS xdrf2ang RUNTIME DESTINATION unrespack/bin)
-install(TARGETS xdrf2pdb DESTINATION ${CMAKE_INSTALL_PREFIX})
-install(TARGETS xdrf2pdb-m DESTINATION ${CMAKE_INSTALL_PREFIX})
-install(TARGETS xdrf2x DESTINATION ${CMAKE_INSTALL_PREFIX})
-install(TARGETS xdrf2ang DESTINATION ${CMAKE_INSTALL_PREFIX})
++install(TARGETS xdrf2pdb DESTINATION ${CMAKE_INSTALL_PREFIX})
++install(TARGETS xdrf2pdb-m DESTINATION ${CMAKE_INSTALL_PREFIX})
++install(TARGETS xdrf2x DESTINATION ${CMAKE_INSTALL_PREFIX})
++install(TARGETS xdrf2ang DESTINATION ${CMAKE_INSTALL_PREFIX})
+
#=========================================
- # TESTS (used by "ctest")
+ # TESTS
#=========================================