From edbab55929e1da0eae7e77083dd7e25e25e978dc Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 30 Jan 2024 07:41:28 -0800 Subject: [PATCH] remove --- .../cori-haswell/cori_haswell.MPI.slurm | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 job_scripts/cori-haswell/cori_haswell.MPI.slurm diff --git a/job_scripts/cori-haswell/cori_haswell.MPI.slurm b/job_scripts/cori-haswell/cori_haswell.MPI.slurm deleted file mode 100644 index 12bba87..0000000 --- a/job_scripts/cori-haswell/cori_haswell.MPI.slurm +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -#SBATCH --job-name=f3anw-strang -#SBATCH --account=m3018 -#SBATCH --nodes=20 -#SBATCH --tasks-per-node=32 -#SBATCH --qos=regular -#SBATCH --time=02:00:00 -#SBATCH --constraint=haswell - -# Cori Haswell has 2 Intel "Haswell" processors each with 16 cores. -# number of nodes = # of MPI * number of threads / 32 (cores / node) - -export OMP_NUM_THREADS=1 -export MPICH_MAX_THREAD_SAFETY=multiple -export CASTRO_EXEC=./Castro2d.intel.haswell.MPI.ex -export INPUTS=inputs - -function find_chk_file { - # find_chk_file takes a single argument -- the wildcard pattern - # for checkpoint files to look through - chk=$1 - - # find the latest 2 restart files. This way if the latest didn't - # complete we fall back to the previous one. - temp_files=$(find . -maxdepth 1 -name "${chk}" -print | sort | tail -2) - restartFile="" - for f in ${temp_files} - do - # the Header is the last thing written -- if it's there, update the restart file - if [ -f ${f}/Header ]; then - restartFile="${f}" - fi - done - -} - -# look for 7-digit chk files -find_chk_file "*chk???????" - -if [ "${restartFile}" = "" ]; then - # look for 6-digit chk files - find_chk_file "*chk??????" -fi - -if [ "${restartFile}" = "" ]; then - # look for 5-digit chk files - find_chk_file "*chk?????" -fi - -# restartString will be empty if no chk files are found -- i.e. new run -if [ "${restartFile}" = "" ]; then - restartString="" -else - restartString="amr.restart=${restartFile}" -fi - -workdir=`basename ${SLURM_SUBMIT_DIR}` -slack_job_start.py "starting NERSC job: ${workdir} ${restartFile}" @michael - -srun ${CASTRO_EXEC} ${INPUTS} ${restartString} -