File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 139,188 kB
  • sloc: cpp: 145,622; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (62 lines) | stat: -rwxr-xr-x 1,389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash

. ../MasterTest.sh

CleanFiles temp.in T.dat T2.dat T3.dat T4.dat T.XP.agr

TESTNAME='Temperature tests'
Requires maxthreads 10

INPUT="-i temp.in"

UNITNAME="Temperature test"
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > temp.in <<EOF
parm Ala10.99SB.mbondi2.parm7
trajin run0.nc
temperature out T.dat ntc 1 T_NoShake
EOF
  RunCpptraj "$UNITNAME."
  DoTest T.dat.save T.dat
fi

UNITNAME="Temperature with SHAKE on hydrogens"
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > temp.in <<EOF
parm Ala10.99SB.mbondi2.parm7
trajin run.ntc2.nc
temperature out T2.dat ntc 2 T_ShakeH
EOF
  RunCpptraj "$UNITNAME."
  DoTest T2.dat.save T2.dat
fi

UNITNAME="Temperature with SHAKE on all atoms"
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > temp.in <<EOF
parm Ala10.99SB.mbondi2.parm7
trajin run.ntc3.nc
# Write data with no header so they can be compared to each other.
temperature out T3.dat noheader ntc 3 T_ShakeAll update
temperature frame out T4.dat noheader
EOF
  RunCpptraj "$UNITNAME."
  DoTest T3.dat.save T3.dat
  DoTest T3.dat.save T4.dat
fi

UNITNAME='Temperature calc with extra points'
cat > temp.in <<EOF
parm ala3.19sb.opc.parm7
trajin pme.onstep.vel mdvel pme.onstep.vel
temperature Total ntc 2 out T.XP.agr
temperature Water ntc 2 out T.XP.agr :WAT
temperature NoXP  ntc 2 out T.XP.agr :WAT@O,H1,H2
EOF
RunCpptraj "$UNITNAME."
DoTest T.XP.agr.save T.XP.agr

EndTest