#!/bin/bash

# Command options:
#SBATCH -J jupiter_20230322_42120_09_SD_UM_xa_testing
#SBATCH -o //dartfs-hpc/rc/lab/L/LynchK/public_html/Gemini3D/jupiter_20230322_42120_09_SD_UM_xa_testing/%j.log
#SBATCH -e //dartfs-hpc/rc/lab/L/LynchK/public_html/Gemini3D/jupiter_20230322_42120_09_SD_UM_xa_testing/%j.err
#SBATCH --mail-type=END,FAIL
#SBATCH --time=1200
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=55
#SBATCH -A physics
# CPU divisions:
# Number of cells = 425 x 430 x 374 = 68,348,500
# Number of CPUs = 55
# Number of cells per cpu = 2.512812e+03
# Number of nodes in x2 = 1
# Number of nodes in x3 = 1
# Number of cells per node in x2 = 430
# Number of cells per node in x3 = 374
# Number of CPUs per node in x2 = 8
# Number of CPUs per node in x3 = 8
# Number of cells per CPU in x2 = 5.375000e+01
# Number of cells per CPU in x3 = 4.675000e+01

# Commands to run
mpiexec /dartfs-hpc/rc/home/p/f007jdp/gemtest/gemini3d/build/gemini.bin //dartfs-hpc/rc/lab/L/LynchK/public_html/Gemini3D/jupiter_20230322_42120_09_SD_UM_xa_testing;\
matlab -batch "\
addpath('/dartfs-hpc/rc/home/p/f007jdp/gemtest/aurora_gemini');\
addpath('/dartfs-hpc/rc/home/p/f007jdp/gemtest/mat_gemini');\
addpath('/dartfs-hpc/rc/home/p/f007jdp/gemtest/mat_gemini-scripts');\
aurogem.sim.process('//dartfs-hpc/rc/lab/L/LynchK/public_html/Gemini3D/jupiter_20230322_42120_09_SD_UM_xa_testing');\
exit\
"
