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

. ../MasterTest.sh

CleanFiles cluster.in 2drms.gnu clusters.*.dat summary.*.dat singlerep.nc \
           Rep.c*.nc PD

TESTNAME='Clustering with specified # reps'
Requires netcdf

if [ $? -eq 0 ] ; then

  INPUT='-i cluster.in'

  cat > cluster.in <<EOF
parm ../DPDP.parm7
trajin ../DPDP.nc
#2drms !@H= out 2drms.gnu
cluster kmeans clusters 2 info clusters.2.dat summary summary.2.dat \
        savepairdist pairdist PD savenreps 5 

#\
#        singlerepout singlerep.nc \
#        repout Rep repfmt netcdf repframe
EOF
  RunCpptraj "$TESTNAME"

  DoTest clusters.2.dat.save clusters.2.dat
  DoTest summary.2.dat.save summary.2.dat
fi

EndTest
exit 0