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 (32 lines) | stat: -rwxr-xr-x 940 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
#!/bin/bash

. ../MasterTest.sh

CleanFiles cluster.in random.out random.info.dat random.summary.dat \
           random.crd.c? random.cpop.agr random.rep.*.pdb CpptrajPairDist
TESTNAME='Cluster tests with random sieves'
Requires netcdf
PREFIX="random"
INPUT="-i cluster.in"

Ctest() {
  cat > cluster.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
random setdefault marsaglia
cluster crd1 @CA clusters 5 rms out $PREFIX.out includesieved_cdist \
        sieve 5 random sieveseed 1 includesieveincalc \
        summary $PREFIX.summary.dat info $PREFIX.info.dat bestrep cumulative \
        clusterout $PREFIX.crd cpopvtime $PREFIX.cpop.agr \
        repout $PREFIX.rep repfmt pdb savepairdist loadpairdist
EOF
  RunCpptraj "Cluster test with random sieve ($1)."
  DoTest random.info.dat.save random.info.dat
  DoTest random.summary.dat.save random.summary.dat
}

Ctest "Save Pairwise Distances"
Ctest "Load Pairwise Distances"

EndTest
exit 0