Skip to content
Snippets Groups Projects
Commit d4b2fcf1 authored by midou's avatar midou
Browse files

Correct the GYSELAX tests

parent be2cf8e0
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,13 @@ fi
####################################
if [ ${ARCH} = 'occigen2' ]; then
cp ../machines/occigen-bdw/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/occigen-bdw/env_bench ./
elif [ ${ARCH} = 'jeanzay' ]; then
cp ../machines/jean-zay-cpu/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/jean-zay-cpu/env_bench ./
elif [ ${ARCH} = 'irene_amd' ]; then
cp ../machines/irene-amd/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/irene-amd/env_bench ./
fi
......@@ -23,5 +23,6 @@ fi
####################################
# RUN SMALLTEST
####################################
source env_bench
cd $GYSELA_PATH/wk/
./subgys bigtest_TKE_A139_n14_dlogTi0.0
......@@ -5,6 +5,9 @@ path=`ls -d ../gysela/wk/*SMALLTEST_TKE*`
if grep -q "1.401556764165E+08" ${path}/gysela_res.out; then
echo "TEST HAS PASSED: SUCCESSFUL"
mkdir results
cp ${path}/gysela_res* ./results
cp ${path}/gysela_log* ./results
else
echo "TEST HAS NOT PASSED: FAIL"
echo ">>The ion density is not correct"
......
......@@ -30,10 +30,13 @@ fi
####################################
if [ ${ARCH} = 'occigen2' ]; then
cp ../machines/occigen-bdw/scaltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/occigen-bdw/env_bench ./
elif [ ${ARCH} = 'jeanzay' ]; then
cp ../machines/jean-zay-cpu/scaltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/jean-zay-cpu/env_bench ./
elif [ ${ARCH} = 'irene_amd' ]; then
cp ../machines/irene-amd/scaltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/irene-amd/env_bench ./
fi
......@@ -23,5 +23,6 @@ fi
####################################
# RUN SMALLTEST
####################################
source env_bench
cd $GYSELA_PATH/wk/
./subgys scaltest_TKE_A139_n14_dlogTi0.0
......@@ -5,6 +5,9 @@ path=`ls -d ../gysela/wk/*SCALTEST_TKE*`
if grep -q "1.363255632198E+08" ${path}/gysela_res.out; then
echo "TEST HAS PASSED: SUCCESSFUL"
mkdir results
cp ${path}/gysela_res* ./results
cp ${path}/gysela_log* ./results
else
echo "TEST HAS NOT PASSED: FAIL"
echo ">>The ion density is not correct"
......
......@@ -31,10 +31,13 @@ fi
####################################
if [ ${ARCH} == 'occigen2' ]; then
cp ../machines/occigen-bdw/smalltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/occigen-bdw/env_bench ./
elif [ ${ARCH} == 'jeanzay' ]; then
cp ../machines/jean-zay-cpu/smalltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/jean-zay-cpu/env_bench ./
elif [ ${ARCH} == 'irene_amd' ]; then
cp ../machines/irene-amd/smalltest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
cp ../machines/irene_amd/env_bench ./
fi
####################################
# Source the right environment
####################################
if [ -z "$1" ]
then
echo "Please provide the targeted machine from:"
ls ../machines/
echo ""
echo "Example: ./run.sh occigen-bdw"
exit 1
fi
env_file="../machines/$1/env_bench"
if [ ! -f $env_file ]
then
echo "ERROR: $env_file not found!"
exit 1
else
source $env_file
fi
####################################
# RUN SMALLTEST
####################################
source env_bench
cd $GYSELA_PATH/wk/
./subgys smalltest_TKE_A139_n14_dlogTi0.0
......@@ -5,6 +5,9 @@ path=`ls -d ../gysela/wk/*SMALLTEST_TKE*`
if grep -q "2.081415648206E+04" ${path}/gysela_res.out; then
echo "TEST HAS PASSED: SUCCESSFUL"
mkdir results
cp ${path}/gysela_res* ./results
cp ${path}/gysela_log* ./results
else
echo "TEST HAS NOT PASSED: FAIL"
echo ">>The ion density is not correct"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment