Commit c8fbc69a authored by Cedric Jourdain's avatar Cedric Jourdain 🐵
Browse files

Add Validation test case for SuperMUC-NG

parent 665a9faa
#!/bin/bash
#SBATCH -J Validation_case_specfem-small_benchmark_run_to_test_more_complex_Earth
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=24
#SBATCH --time=01:59:59
#SBATCH --no-requeue
#SBATCH --account=pn68go
#SBATCH --partition=micro # insert test, micro, general, large or fat
#SBATCH --output Validation_case_specfem_small_benchmark_run_to_test_more_complex_Earth-%j.out
source ../env/env_supermuc-ng
echo "Environment used:"
echo "================="
cat ../env/env_supermuc-ng
cat job_supermuc-ng_small_benchmark_run_to_test_more_complex_Earth.slurm
cd $install_dir/specfem3d_globe/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth
export SLURM_CPU_BIND=NONE
export I_MPI_PIN=1
export LIBRARY_PATH=$LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
export CPATH=$CPATH:/usr/local/include/:/usr/include
export FPATH=$FPATH:/usr/local/include/:/usr/include
echo "==============================================================="
time ./run_mesher_solver.bash
echo
echo "running seismogram comparisons:"
echo
cd $install_dir/specfem3d_globe/
# uncompress seismograms
if [ -e EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/OUTPUT_FILES_reference_OK/II.AAK.MXE.sem.ascii.bz2 ]; then
echo
echo "unzipping references..."
echo
mkdir OUTPUT_FILES_reference_OK/
bunzip2 EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/OUTPUT_FILES_reference_OK/*.bz2
echo
echo
fi
module load python/2.7_intel
# compares seismograms by plotting correlations
./utils/compare_seismogram_correlations.py EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/OUTPUT_FILES/ EXAMPLES/small_benchmark_run_to_test_more_complex_Earth/OUTPUT_FILES_reference_OK/
echo
echo "done"
echo
Supports Markdown
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