********> bugfix.27
Author: Dave Pearlman
Date: 10/30/01
Programs: interface
Severity: won't work as written with sander
Description: The interface files for version 6 have a bit of an idiosyncratic
naming scheme. "sander" refers to sander_classic, and "sander_pme"
refers to sander. The definition file for sander has some errors.
Put the file below into:
$AMBERHOME/src/interface/def/sander_pme_namelist.def
Then "recompile" the amber interface (not the interface program, but
the script).
New version of sander_pme_namelist.def:
! interface code to write namelist formatted Interface input for Sander_pme
! D.A. Pearlman , 3/99
!
! The following variables, which were included in the Amber 5.0 &cntrl
! namelist, are not in the Amber6/sander_pme namelist:
! KFORM ICHDNA IPRR IPRW TAUTS ISOLVP IFTRES NRUN INIT NATRCM
! IDIEL IMGSLT NTNB NTID ISFTRP RWELL XON XOFF TAUV TAUV0
! VZERO CUT2ND IEWALD COSMOD ITRSLU NTWR ILBOPT ILBNOB LBFREQ LBVERB
! LBWGHT
!
! The following variables, which are in the &cntrl namelist for
! Amber6/sander_pme were not in the Amber50 namelist:
! IALTDIST IGB IGBFREQ
! writes two namelists:
! 1) &cntrl (main variables list)
! 2) &ewald (Ewald control list)
! redefine FORMEC to output 7 sig digits to namelist
define FORMEC = "G16.7"
assign nmfmtuse = "(10(t5,a,t28,', ',:,a,t53,', ',:,a,t78,',',:,/))"
write ("TITLE:
" ) \
/outfile = outfil \
/out_form = (a,/)
write(" &cntrl") /outfile=outfil/out_form=(a)
write ("timlim = ","irest = " ,"ibelly = ", \
"imin = ", \
"ipol = " ) \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntx = " ,"ntxo = " ,"ntcx = ", \
"ig = " ,"tempi = " ,"heat = ") \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntb = " ) \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ( "ntt = " ,"temp0 = ", \
"dtemp = " ,"tautp = " , \
"vlimit = ") \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntp = " ,"pres0 = " ,"comp = ", \
"taup = " ,"npscal = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ndfmin = ","ntcm = " ,"nscm = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("nstlim = ", "ntu = ",\
"t = " ,"dt = " ) \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntc = " ,"ntcc = " ,"nconp = ",\
"tol = " ,"jfastw = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntf = " ,"ntn = " , \
"nsnb = " )\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("cut = " ,"scnb = " ,"scee = ",\
"dielc = ") \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntpr = " ,"ntwx = " ,"ntwv = ",\
"ntwe = " , \
"ntpp = " ,"ioutfm = ",\
"ntwprt = ","ntwpr0 = ") \
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ntr = " ,"nrc = " ,"ntrx = ",\
"taur = " ,"nmropt = ", \
"pencut = " )\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("ivcap = " ,"fcap = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("maxcyc = ","ncyc = " ,"ntmin = ",\
"dx0 = " ,"dxm = " ,"dele = ",\
"drms = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
write ("igb = " ,"igbfreq= " ) \
/outfile=outfil\
/out_form=
echo /outfile=outfil
! new water name definition if defined:
if (jfastw.eq.1 .or. jfastw.eq.3) then
write ("watnam = ''","owtnm = ''" , \
"hwtnm1 = ''","hwtnm2 = ''") \
/outfile = outfil \
/out_form =
echo /outfile=outfil
end if
!
! First, if nmropt=2 or 3, write the additional cards needed for volume
! and chemical shift restraint (lines 15A, 15B):
if (nmropt.eq.2 .or. nmropt.eq.3) then
write ("iscale = ","noeskp = ","ipnlty = ",\
"maxsub = ","scalm = " ,"tausw = ")\
/outfile=outfil\
/out_form=
echo /outfile=outfil
end if
! Following variables not in distributed version
! write ("boxx(1)= ", "boxx(2)= " ,"boxx(3)= " ,\
! "betar = ") \
! /outfile=outfil\
! /out_form=
! Write out any additional namelist variables specified by the using
! using the "nameset" command.
if (iasval("inml_add").eq.0) assign inml_add = 0
if (inml_add.gt.0) then
do i = 1,inml_add,3
if (inml_add.ge.i+2) then
write ("> = <>>" , \
"> = <>>", \
"> = <>>") \
/outfile=outfil\
/out_form=
else if (inml_add.eq.i+1) then
write ("> = <>>" , \
"> = <>>") \
/outfile=outfil\
/out_form=
else
write ("> = <>>" ) \
/outfile=outfil\
/out_form=
end if
end do
echo /outfile=outfil
end if
write(" &end") /outfile=outfil/out_form=(a)
! write out &ewald namelist if the ewald command was specified (iewald=1)
if (iewald.ne.1) goto ewaldskip
write(" ") /outfile=outfil/out_form=(a)
write(" &ewald") /outfile=outfil/out_form=(a)
! only output cell parameters if they were specified
if (iasval("A_EW").ne.0) \
write ("a = " ,"b = " ,"c = " ,\
"alpha = " ,"beta = " ,"gamma = ") \
/outfile=outfil\
/out_form=
write ("nfft1 = " ,"nfft2 = " ,"nfft3 = " ,\
"order = ","ischrgd = " ,\
"verbose= " ,"ew_type= " ,\
"dsum_tol= ")\
/outfile=outfil\
/out_form=
write ("ew_coeff= " ,"nbflag = " ,"skinnb = " ,\
"nbtell = " ,"netfrc = " ,"frc_int= " ,\
"ee_type = " ,\
"vdwmeth= " ,"eedmeth= " ,\
"eedtbdns = " ) \
/outfile=outfil\
/out_form=
! Write out any additional namelist variables specified by the using
! using the "nameset/ewald" command.
if (iasval("inml_add_ewald").eq.0) assign inml_add_ewald = 0
if (inml_add_ewald.gt.0) then
do i = 1,inml_add_ewald,3
if (inml_add_ewald.ge.i+2) then
write ("> = <>>" , \
"> = <>>", \
"> = <>>") \
/outfile=outfil\
/out_form=
else if (inml_add.eq.i+1) then
write ("> = <>>" , \
"> = <>>") \
/outfile=outfil\
/out_form=
else
write ("> = <>>" ) \
/outfile=outfil\
/out_form=
end if
end do
echo /outfile=outfil
end if
echo /outfile=outfil
write(" &end") /outfile=outfil/out_form=(a)
ewaldskip:
! reset FORMEC to default of 16.5
define FORMEC = "G16.5"
------------------------------------------------------------------------------