corrections to cluster_wham
authorCezary Czaplewski <czarek@chem.univ.gda.pl>
Thu, 10 Mar 2016 07:39:48 +0000 (08:39 +0100)
committerCezary Czaplewski <czarek@chem.univ.gda.pl>
Thu, 10 Mar 2016 07:39:48 +0000 (08:39 +0100)
ctest/1L2Y_clust.inp [new file with mode: 0644]
ctest/1L2Y_wham.cx [new file with mode: 0644]
source/cluster/wham/src/CMakeLists.txt
source/cluster/wham/src/Makefile-MPICH-ifort
source/cluster/wham/src/main_clust.F
source/cluster/wham/src/read_coords.F

diff --git a/ctest/1L2Y_clust.inp b/ctest/1L2Y_clust.inp
new file mode 100644 (file)
index 0000000..ef80c72
--- /dev/null
@@ -0,0 +1,11 @@
+1L2Y clustering
+nres=22 n_ene=18 ncut=1 cutoff=-58.0   pdbref rescale=2 PRINT_CART PDBOUT=1    &
+iopt=1 temper=280 one_letter
+WSC=1.00000 WSCP=1.23315 WELEC=0.84476 WBOND=1.00000 WANG=0.62954              &
+WSCLOC=0.10554 WTOR=1.84316 WTORD=1.26571 WCORRH=0.19212 WCORR5=0.00000        &
+WCORR6=0.00000 WEL_LOC=0.37357 WTURN3=1.40323 WTURN4=0.64673 WTURN6=0.00000    &
+WVDWPP=0.23173 WHPB=1.00000 WSCCOR=0.25                                        &
+CUTOFF=7.00000 WCORR4=0.00000
+XNLYIQWLKDGGPSSGRPPPSX
+ 0
+1L2Y.pdb
diff --git a/ctest/1L2Y_wham.cx b/ctest/1L2Y_wham.cx
new file mode 100644 (file)
index 0000000..f2172bb
Binary files /dev/null and b/ctest/1L2Y_wham.cx differ
index 9bf570e..1bf6cf4 100644 (file)
@@ -63,7 +63,7 @@ set(UNRES_CLUSTER_WHAM_PP_SRC
 # Set comipiler flags for different sourcefiles  
 #================================================
 if (Fortran_COMPILER_NAME STREQUAL "ifort")
-  set(FFLAGS0 "-ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) 
+  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 " ) 
 else ()
index 6d84dc6..54aebd9 100644 (file)
@@ -1,6 +1,6 @@
 INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh
 FC = ifort
-OPT = -O3 -ip -w
+OPT = -O3 -ip -w -mcmodel=medium -shared-intel
 #OPT = -CB -g 
 FFLAGS =  ${OPT} -c -I. -Iinclude_unres -I$(INSTALL_DIR)/include
 CPPFLAGS = -DLINUX -DPGI -DSPLITELE -DPROCOR -DMP -DMPI
index b4bfe0a..4fe3789 100644 (file)
@@ -306,17 +306,17 @@ C
 C
       close(icbase,status="delete")
 #ifdef MPI
-      call MPI_Finalize(MPI_COMM_WORLD,IERROR)
+      call MPI_Finalize(IERROR)
 #endif
       stop '********** Program terminated normally.'
    20 write (iout,*) "Error reading coordinates"
 #ifdef MPI
-      call MPI_Finalize(MPI_COMM_WORLD,IERROR)
+      call MPI_Finalize(IERROR)
 #endif
       stop
    30 write (iout,*) "Error reading reference structure"
 #ifdef MPI
-      call MPI_Finalize(MPI_COMM_WORLD,IERROR)
+      call MPI_Finalize(IERROR)
 #endif
       stop
       end
index cf98db7..4e90584 100644 (file)
@@ -212,6 +212,7 @@ c          call flush(iout)
                enddo
              enddo
           else
+            itmp=0
 #if (defined(AIX) && !defined(JUBL))
             call xdrf3dfcoord_(ixdrf, csingle, itmp, prec, iret)
             if (iret.eq.0) goto 101