Selectable size of test parameters
[ctsim.git] / scripts / test-single-openmp.sh
index 22f1a2454b9400bd252cf6c378172c6cec62dae2..8697e3710c1701f41841093afd7b5fa56ea51b3a 100755 (executable)
@@ -1,12 +1,26 @@
-PR=1651
-PV=1441
-IX=1151
-IY=$IX
+#/bin/sh
+
+TEST=medium
+if test $# -ge 1; then
+    TEST=$1
+fi
+
+if test "x$TEST" = "xshort"; then
+    PR=165;  PV=144;  IX=115;  IY=$IX
+elif test "x$TEST" = "xmedium"; then
+    PR=901;  PV=600;  IX=500;  IY=$IX
+elif test "x$TEST" = "xlong"; then
+    PR=1651;  PV=1440;  IX=1151;  IY=$IX
+else
+    echo "usage: $0 [test-size]"
+    echo "test-size -- either short, medium, or long"
+    exit
+fi
 TIME=
 
-BIN1=./omp/ctsimtext
-BIN2=./sng/ctsimtext
 DIR=/tmp
+BIN1=$DIR/omp/ctsimtext
+BIN2=$DIR/sng/ctsimtext
 
 for PHAN in herman; do
     fbase=${DIR}/${PHAN}