File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (100 lines) | stat: -rwxr-xr-x 2,155 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash

. ../MasterTest.sh

# Clean
CleanFiles image.in ortho.dat nonortho.dat image.crd image2.crd image3.crd image4.crd

INPUT="-i image.in"
TESTNAME='Imaging tests'
Requires netcdf maxthreads 10
# Test 1 - orthorhombic imaged distance
cat > image.in <<EOF
noprogress
parm ../tz2.ortho.parm7
trajin ../tz2.ortho.nc
distance image :507@O :499@O out ortho.dat
distance noimage :507@O :499@O out ortho.dat noimage
go
EOF
RunCpptraj "Orthorhombic imaged distance test."
DoTest ortho.dat.save ortho.dat

# Test 2 - nonorthorhombic imaged distance
cat > image.in <<EOF
noprogress
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc 
distance image :1507@O :1676@O out nonortho.dat
distance noimage :1507@O :1676@O out nonortho.dat noimage
go
EOF
RunCpptraj "Non-orthorhombic imaged distance test."
DoTest nonortho.dat.save nonortho.dat

UNITNAME='Orthorhombic coordinate imaging test'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > image.in <<EOF
noprogress
parm ../tz2.ortho.parm7
trajin ../tz2.ortho.nc 1 2
center :2 origin
image origin center
trajout image.crd 
go
EOF
  RunCpptraj "$UNITNAME"
  DoTest image.crd.save image.crd
fi

UNITNAME='Nonorthorhombic coordinate imaging test'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > image.in <<EOF
noprogress
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc 1 2
center :2-11
image center triclinic
trajout image2.crd
go
EOF
  RunCpptraj "$UNITNAME"
  DoTest image2.crd.save image2.crd
fi

UNITNAME='Nonorthorhombic coordinate imaging test with familiar'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > image.in <<EOF
noprogress
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc 1 2
center :2-11 origin
image origin center familiar
trajout image3.crd
go
EOF
  RunCpptraj "$UNITNAME"
  DoTest image3.crd.save image3.crd
fi

UNITNAME='Nonorthorhombic coordinate imaging test with familiar and COM'
CheckFor maxthreads 2
if [ $? -eq 0 ] ; then
  cat > image.in <<EOF
noprogress
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc 1 2
center :2-11
image center familiar com :6
trajout image4.crd
go
EOF
  RunCpptraj "$UNITNAME"
  DoTest image4.crd.save image4.crd
fi
EndTest

exit 0