Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79331834
run_test.sh.in
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 25, 21:14
Size
924 B
Mime Type
text/x-shellscript
Expires
Tue, Aug 27, 21:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20174792
Attached To
rLIBMULTISCALE LibMultiScale
run_test.sh.in
View Options
#! /bin/bash
set -x
if [ $# -ne 4 ]
then
echo "Usage: $0 <test_name> <input_dir> <job_dir> <nsteps>"
exit -1
fi
test_name=$1
input_path=$2
job_dir=$3
nsteps=$4
function quit {
echo "quit";
rm -f release.info
cd -
exit $1
}
function test_return {
if [ $1 -ne 0 ]
then
echo "error detected $1";
quit $1
fi
}
rm -rf $test_name/*
mkdir -p $test_name
cp -a $input_path/$job_dir/* $test_name
rm -rf $test_name/.svn
cd $test_name
for f in *.geo; do
if [ -e $f ]
then
@GMSH@ -format msh2 -3 -order 1 -optimize -o ${f%.geo}.msh $f
fi
done
if [ -e $job_dir.sh ]
then
bash ./$job_dir.sh $job_dir.config $nsteps
else
@AMEL_PATH@ $job_dir.config $nsteps
test_return $?
if [ -e $job_dir.pconfig ]
then
for i in 3 4 5 6 7 8; do
export NPROC=$i; @MPIRUN@ @MPIEXEC_NUMPROC_FLAG@ $i @AMEL_PATH@ $job_dir.pconfig $nsteps
test_return $?
done
fi
fi
Event Timeline
Log In to Comment