summaryrefslogtreecommitdiff
path: root/Dragon/data/TEST_GEO_latt_tspc_S30.access
diff options
context:
space:
mode:
authorstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
committerstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
commit7dfcc480ba1e19bd3232349fc733caef94034292 (patch)
tree03ee104eb8846d5cc1a981d267687a729185d3f3 /Dragon/data/TEST_GEO_latt_tspc_S30.access
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/data/TEST_GEO_latt_tspc_S30.access')
-rwxr-xr-xDragon/data/TEST_GEO_latt_tspc_S30.access38
1 files changed, 38 insertions, 0 deletions
diff --git a/Dragon/data/TEST_GEO_latt_tspc_S30.access b/Dragon/data/TEST_GEO_latt_tspc_S30.access
new file mode 100755
index 0000000..bb190e8
--- /dev/null
+++ b/Dragon/data/TEST_GEO_latt_tspc_S30.access
@@ -0,0 +1,38 @@
+#!/bin/sh
+if [ $# = 0 ]
+ then
+ echo "usage: TEST_GEO_latt_tspc_S30.access directory" 1>&2
+ exit 1
+fi
+MACH=`uname -s`
+Sysx="`echo $MACH | cut -b -6`"
+if [ $Sysx = "CYGWIN" ]; then
+ MACH=`uname -o`
+elif [ $Sysx = "Darwin" ]; then
+ MACH=`uname -sm | sed 's/[ ]/_/'`
+elif [ $Sysx = "SunOS" ]; then
+ MACH=`uname -sm | sed 's/[ ]/_/'`
+fi
+if [ "$MACH" = "Linux" -o "$MACH" = "OSF1" -o "$MACH" = "Cygwin" -o "$MACH" = "SunOS_i86pc" \
+-o "$MACH" = "Darwin_i386" -o "$MACH" = "Darwin_x86_64" -o "$MACH" = "Darwin_arm64" \
+-o "$MACH" = "Linux_aarch64" ]
+ then
+ echo 'use little endian libraries'
+ pos=$1/../../libraries/l_endian
+ else
+ echo 'use big endian libraries'
+ pos=$1/../../libraries/b_endian
+fi
+if [ -f "$pos"/draglibendfb7r1SHEM315_v5p1.gz ]
+ then
+ echo 'gunzipping draglibendfb7r1SHEM315_v5p1'
+ chmod 755 "$pos"
+ gunzip "$pos"/draglibendfb7r1SHEM315_v5p1.gz
+fi
+if [ -f "$pos"/draglibendfb7r1SHEM315_v5p1 ]
+ then
+ ln -s "$pos"/draglibendfb7r1SHEM315_v5p1 DLIB_8R0_315
+fi
+ln -s "$1"/data/TEST_GEO_latt_tspc_S30_proc/lattice_hex_tspc_S30_7cells.dat .
+ls -l
+echo "TEST_GEO_latt_tspc_S30.access script terminated"