Debian Codegraph @

contrib/iapbs/modules/Amber/test/apbs_radi/Run.ion.min

raw
1 #!/bin/csh -f
2
3 if( ! $?TESTsander ) set TESTsander = "../../exe/sander.APBS"
4
5 if( ! $?DO_PARALLEL ) then
6 setenv DO_PARALLEL " "
7 else
8 echo "This test not set up for parallel"
9 echo " cannot run in parallel with pbsa"
10 exit 0
11 endif
12
13 setenv MCSH_HOME /dev/null
14
15 if ( -e mdin ) then
16 rm mdin
17 endif
18
19 cat > mdin <<EOF
20 test of iAPBS/sander solvation energies (based on pbsa_radi)
21 &cntrl
22 ntx=1, irest=0,
23 imin=1, maxcyc=0,
24 ntpr=1, ntwr=100000,
25 igb=6, ntb=0,
26 ntc=1, ntf=1, tol=0.000001,
27 ntt=0, temp0=300
28 &end
29 &apbs
30 apbs_debug=0,
31 apbs_print=0,
32 grid=0.5, 0.5, 0.5,
33 calc_type=0,
34 cmeth=1,
35 bcfl=2,
36 srfm=1,
37 chgm=1,
38 pdie=1.0,
39 sdie=80.0,
40 srad = 1.4,
41 radiopt=0,
42 calcforce=0, calcnpenergy=1,
43 &end
44 EOF
45
46 set all = "Li Na K Rb Cs F Cl IM Br I MG Ca Zn tp3 ile leu val phe trp hid hie nhe tyr ser thr cys cyx met lyn ash glh asn gln nma alabk glybk probk da dc dg dt ru arg asp cym glu hip lys dap da3p da5p danp rap ra3p ra5p ranp"
47 foreach aa ($all)
48 set output = $aa.out
49
50 $DO_PARALLEL $TESTsander -O -i mdin -p ./prmtop-inpcrd/$aa.prmtop -c ./prmtop-inpcrd/$aa.inpcrd -o $output < /dev/null || goto error
51
52 ${AMBERHOME}/test/dacdif ./out.save/$aa.out.save $output
53 /bin/rm -f restrt mdinfo mdcrd
54 goto next
55
56 error:
57 echo " ${0}: Program error"
58 exit(1)
59
60 next:
61 end