From 778fa3f5e54bacf8e9053f0de828d40f0bd3c609 Mon Sep 17 00:00:00 2001 From: micdom Date: Wed, 7 Jul 2021 12:22:27 +0100 Subject: [PATCH 1/2] Update make_domain_cfg.sh wait for domain creation job to finish --- SCRIPTS/make_domain_cfg.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/SCRIPTS/make_domain_cfg.sh b/SCRIPTS/make_domain_cfg.sh index 6c9bce8..02ab0b7 100644 --- a/SCRIPTS/make_domain_cfg.sh +++ b/SCRIPTS/make_domain_cfg.sh @@ -35,7 +35,16 @@ the provided coordinates and bathymetry netCDF files. # Submit the domain creation as a job, cd $TDIR/DOMAINcfg sbatch job_create.slurm - + + #wait for domain creation job to finish + for i in {0..7}; do #8 tiles + while [ ! -f domain_cfg_000$i.nc ] ; + do + echo "wait for domain creation job to finish" + sleep 60 + done + done + # Rebuild the files. Here there are 8 tiles (and rebuilding on a single thread) $TDIR/REBUILD_NEMO/rebuild_nemo -t 1 domain_cfg 8 From c785c33b927356415c554aa4844cdfc4af773b9f Mon Sep 17 00:00:00 2001 From: micdom Date: Wed, 7 Jul 2021 12:23:15 +0100 Subject: [PATCH 2/2] Update make_tools.sh remove repetition of REBUILD_NEMO --- SCRIPTS/make_tools.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/SCRIPTS/make_tools.sh b/SCRIPTS/make_tools.sh index 761f046..2a409b5 100644 --- a/SCRIPTS/make_tools.sh +++ b/SCRIPTS/make_tools.sh @@ -36,7 +36,6 @@ ./maketools -m X86_ARCHER2-Cray -n REBUILD_NEMO ./maketools -m X86_ARCHER2-Cray -n WEIGHTS ./maketools -m X86_ARCHER2-Cray -n DOMAINcfg - ./maketools -m X86_ARCHER2-Cray -n REBUILD_NEMO # Make SOSIE tool.