Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tools/startA3D

1#!/bin/bash
2#
3# startA3D
4#
5# version : 1.2
6# author : J-F. Roche, M. Bavay
7# date : 2011-07-21
8#
9# purpose : preparing the environment and launch the Alpine3D application
10#
11
12# Specify which batch system we use for POP-C++
13export POPC_BATCH=smscg
14export LD_LIBRARY_PATH=${HOME}/usr/lib
15
16# For SMSCG ARC : if we have alpine3d in the environment, use it
17#if [ "X$ALPINE3D_LOCATION" = "X" ];
18#then
19# In case we send the binaries of Alpine3D
20# untar from the tared input files and creating directories for the results
21tar -zxf setup.tgz
22tar -zxf input.tgz
23
24#use our won version of Alpine3D
25tar -zxf bin.tgz
26#or use the version installed on the cluster
27#ln -s $ALPINE3D_LOCATION/bin ./bin
28#fi
29
30# we copy the file containing the address of nodes to current directory
31# this is needed because we lost the content of the environment variable when we use ssh for object creation
32#cp $SMSCG_HOSTLIST_FILE setup/nodefile.smscg
33
34#we prefer to do round robin on the nodes instead of on the cores -> keep only unique nodes
35cat $SMSCG_HOSTLIST_FILE | sort -u > setup/nodefile.smscg
36
37install -d output/snowfiles
38install -d output/tables
39
40echo "--- Available nodes : "
41cat setup/nodefile.smscg
42
43# launching of the preparation of the parameters
44cd setup
45./run.sh
46
47# at the end of the execution, prepare the results
48cd ..
49tar -zcf A3Dout.tgz output/*
50
51#if everything was properly packed, we do not need the original outputs anymore
52rm -Rf output/*
53

Archive Download this file

Revision: HEAD