Skip to content
job_occigen_small_benchmark_run_to_test_more_complex_Earth.slurm 1.13 KiB
Newer Older
#!/bin/bash
#SBATCH -J job_occigen_small_benchmark_run_to_test_more_complex_Earth.slurm
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=24
#SBATCH --time=23:59:59
#SBATCH --output specfem_more_small_benchmark_run_to_test_more_complex_Earth-%j.out 
#SBATCH -C HSW24

#set -e
source ../env/env_occigen

cd $install_dir/specfem3d_globe/EXAMPLES/small_benchmark_run_to_test_more_complex_Earth

./run_this_example.sh

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 purge
module load intel/17.0 python/2.7.13
# 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