File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (54 lines) | stat: -rwxr-xr-x 908 bytes parent folder | download
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
#!/bin/bash

. ../MasterTest.sh

# Clean
CleanFiles cpptraj.in surf.dat tsurf.dat ral.surf.dat

INPUT="-i cpptraj.in"

# Test 1
UNITNAME='Surface calculation test'
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > cpptraj.in <<EOF
noprogress
trajin ../DPDP.nc
surf All out surf.dat
EOF
  TOP="../DPDP.parm7"
  RunCpptraj "$UNITNAME"
  DoTest surf.dat.save surf.dat
fi

# Test 2
UNITNAME='Partial Surface calculation test'
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > cpptraj.in <<EOF
noprogress
trajin ../DPDP.nc
surf R1-12 out tsurf.dat :1-12
EOF
  TOP="../DPDP.parm7"
  RunCpptraj "$UNITNAME"
  DoTest tsurf.dat.save tsurf.dat
fi

# Test 3
UNITNAME='LCPO test with GAFF atom types'
CheckFor maxthreads 1
if [ $? -eq 0 ] ; then
  TOP=""
  cat > cpptraj.in <<EOF
parm RAL.sol.top
trajin RAL.crd
surf S0 out ral.surf.dat
EOF
  RunCpptraj "$UNITNAME"
  DoTest ral.surf.dat.save ral.surf.dat
fi

EndTest

exit 0