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 (61 lines) | stat: -rwxr-xr-x 1,377 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
#!/bin/bash

. ../MasterTest.sh

CleanFiles ene.in ene.agr short.dat tz2.dat strip.dat elec.dat vdw.dat

INPUT="-i ene.in"

TESTNAME='Simple energy tests'
Requires netcdf

cat > ene.in <<EOF
parm ../DPDP.parm7
trajin ../DPDP.nc
energy DPDP out ene.agr
EOF
RunCpptraj "$TESTNAME"
DoTest ene.agr.save ene.agr

UNITNAME='Test kinetic energy calculation'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > ene.in <<EOF
parm ../tz2.nhe.parm7
trajin ../Test_VelFrc/short.crd mdvel ../Test_VelFrc/short.vel mdfrc ../Test_VelFrc/short.frc
energy kinetic Short out short.dat dt 0.002
EOF
  RunCpptraj "$UNITNAME"
  DoTest short.dat.save short.dat
fi

UNITNAME='Test total energy calculation'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > ene.in <<EOF
parm ../tz2.nhe.parm7
trajin ../Test_VelFrc/short.crd mdvel ../Test_VelFrc/short.vel mdfrc ../Test_VelFrc/short.frc
energy Tz2 out tz2.dat dt 0.002
EOF
  RunCpptraj "$UNITNAME"
  DoTest tz2.dat.save tz2.dat
fi

UNITNAME='Test partial energy calculation'
CheckFor maxthreads 10
if [ $? -eq 0 ] ; then
  cat > ene.in <<EOF
parm ../FtuFabI.NAD.TCL.parm7
trajin ../FtuFabI.NAD.TCL.nc
energy out strip.dat :NDP ENE1
energy out elec.dat  :NDP ENE2 elec
energy out vdw.dat   :NDP ENE3 vdw
EOF
  RunCpptraj "$UNITNAME"
  DoTest strip.dat.save strip.dat
  DoTest elec.dat.save elec.dat
  DoTest vdw.dat.save vdw.dat
fi

EndTest
exit 0