added source code
[unres.git] / bin / wham / wham-M.csh
1 #!/bin/csh -f
2 #set echo
3 # Script to run the program zscorezi_MPI on linux with MPICH (parallel version).
4 #
5 if ("$3" != "-p4amslave") then
6 cd $4
7 endif
8
9 echo "This job is running on host `hostname` "
10 if ($#argv<2) then
11   echo "You must supply potential type and input/output filename prefix."
12   exit (1)
13 endif
14
15 set DD = /users/adam/UNRES/PARAM
16 set BIN = /users/adam/ZSCOREZ/bin
17
18 set POT = GB
19 setenv POT GB
20 setenv SCRATCHDIR /tmp
21
22 setenv PREFIX 1DKZ-wham-test
23
24 #
25 # Is the specified potential in the list of valid force fields?
26 #
27 if (($POT != "LJ") && ($POT != "LJK") && ($POT != "BP") && ($POT != "GB") \
28 && ($POT != "GBV") ) then
29   echo "Unknown potential type $POT"
30   exit(1)
31 endif
32
33 # Check for the existence of the input file
34
35 #if (!(-e $2.inp)) then
36 #  echo "Error: The input file $2.inp does not exist."
37 #  exit(1)
38 #endif
39
40 # 5/17/97 parameter file assignment was changed from link to SETENV statements
41 #
42 setenv BONDPAR $DD/bond.parm
43 setenv THETPAR $DD/thetaml.5parm
44 setenv ROTPARPDB $DD/scgauss.parm
45 setenv ROTPAR $DD/scgauss.parm
46 setenv TORPAR $DD/torsion_631Gdp.parm
47 setenv TORDPAR $DD/torsion_double_631Gdp.parm
48 setenv ELEPAR $DD/electr_631Gdp.parm
49 #setenv SIDEPAR $DD/scinter_${POT}.parm
50 setenv SIDEPAR $DD/sc_GB_opt.1gab_3S_qclass5no310-shan2-sc-16-10-8k
51 setenv FOURIER $DD/fourier_opt.parm.1igd_hc_iter3_3
52 setenv SCCORPAR $DD/rotcorr_AM1.parm
53 setenv SCPPAR $DD/scp.parm
54 setenv PATTERN $DD/patterns.cart
55 #setenv PRINT_PARM YES
56 # Define contact function for classification
57 setenv CONTFUNC GB
58 if (${CONTFUNC} == "GB") then
59   setenv SIDEP ${DD}/contact.3.parm
60 else if (${CONTFUNC} == "SCDIST") then
61   setenv SIDEP ${DD}/cend.3.45.parm
62 else if (${CONTFUNC} == "CEN") then
63   setenv SIDEP ${DD}/cen.parm
64 else if (${CONTFUNC} == "ODC") then
65   setenv SIDEP ${DD}/odc.parm
66 else if (${CONTFUNC} != "SIG") then
67   echo "Unknown sidechain contact function ${CONTFUNC}"
68   exit
69 endif
70
71 # Set parallel environment, depending on job type (interactive or batch).
72
73 set DEBUG = 0
74
75 limit coredumpsize 0
76 $BIN/wham_multparm-D-sccor-oldparm $*
77 #$BIN/wham_multparm-OPTERON-D-sccor-oldparm $*
78 #$BIN/wham_multparm-OPTERON-T-sccor-oldparm $*