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

. ../MasterTest.sh

CleanFiles ptraj.in random.crd around.overlap.rst7 around.rst7 overlap.rst7 norestrict.rst7

TESTNAME='randomizeions test'
Requires maxthreads 1 zlib

INPUT="ptraj.in"
TOP="adh206.ff10.tip3p.parm7.gz"
cat > ptraj.in <<EOF
trajin adh206.tip3p.rst7.gz
rng setdefault marsaglia
randomizeions @Na+ around :1-16 by 5.0 overlap 3.0 seed 113698 originalalgorithm
trajout random.crd title "Test"
EOF
RunCpptraj "randomizeions test (original algorithm)"
DoTest random.crd.save random.crd

# Around and overlap
cat > ptraj.in <<EOF
trajin adh206.tip3p.rst7.gz
rng setdefault marsaglia
randomizeions :Na+ around :1-16 by 5.0 overlap 3.0 seed 1
trajout around.overlap.rst7
EOF
RunCpptraj "Randomize (around, overlap)"
DoTest around.overlap.rst7.save around.overlap.rst7

# Around 
cat > ptraj.in <<EOF
trajin adh206.tip3p.rst7.gz
rng setdefault marsaglia
randomizeions :Na+ around :1-16 by 5.0 allowoverlap seed 1
trajout around.rst7
EOF
RunCpptraj "Randomize (around)"
DoTest around.rst7.save around.rst7

# Overlap
cat > ptraj.in <<EOF
trajin adh206.tip3p.rst7.gz
rng setdefault marsaglia
randomizeions :Na+ overlap 3.0 seed 1
trajout overlap.rst7
EOF
RunCpptraj "Randomize (overlap)"
DoTest overlap.rst7.save overlap.rst7

# No restrictions
cat > ptraj.in <<EOF
trajin adh206.tip3p.rst7.gz
rng setdefault marsaglia
randomizeions :Na+ allowoverlap seed 1
trajout norestrict.rst7
EOF
RunCpptraj "Randomize (no restrictions)"
DoTest norestrict.rst7.save norestrict.rst7

EndTest

exit 0