New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
batch_script_example in NEMO/branches/UKMO/NEMO_4.0-TRUNK_r14960_HPG/tests/CPL_ORCA2_ICE_PISCES/EXPREF – NEMO

source: NEMO/branches/UKMO/NEMO_4.0-TRUNK_r14960_HPG/tests/CPL_ORCA2_ICE_PISCES/EXPREF/batch_script_example @ 15719

Last change on this file since 15719 was 15719, checked in by dbruciaferri, 2 years ago

updating tests from git repo

File size: 1.4 KB
Line 
1#!/bin/bash
2#SBATCH --time=00:10:00
3#SBATCH -p normal64         # partition/queue
4#SBATCH --job-name=toyatm   # job name
5#SBATCH -N 1                # number of nodes
6#SBATCH -o /scratch/work/cglo315/ESIWACE/release-4.0/tests/CPL_ORCA2_ICE_PISCES/EXP00/Log/job.out%j
7#SBATCH -e /scratch/work/cglo315/ESIWACE/release-4.0/tests/CPL_ORCA2_ICE_PISCES/EXP00/Log/job.out%j
8#SBATCH --exclusive
9
10set -vx
11module list
12
13
14CONFIG_DIR=/scratch/work/cglo315/ESIWACE/release-4.0/tests/CPL_ORCA2_ICE_PISCES/EXP00
15echo $CONFIGDIR
16cd ${TMPDIR}
17echo "RUN directory " `pwd`
18
19# Get input  files
20DATA1DIR=/scratch/work/cglo315/ESIWACE/initial_intrumented/cfgs/ORCA2_ICE_PISCES/EXP00/Inputs
21for file in $DATA1DIR/*
22do
23ln -s $file . || exit 2
24done
25
26# Get input namelist  and xml files
27for file in $CONFIG_DIR/*namelist*_ref $CONFIG_DIR/*namelist*_cfg $CONFIG_DIR/*.xml
28do
29    cp $file . || exit 3
30done
31
32# Get data for toyatm
33TOYATM_DIR=/scratch/work/cglo315/ESIWACE/release-4.0/tools/TOYATM
34for file in $TOYATM_DIR/EXP/*
35do
36    cp $file . || exit 4
37done
38
39# Get Executables
40cp $CONFIG_DIR/../BLD/bin/nemo.exe .  || exit 5
41cp $TOYATM_DIR/toyatm.exe . || exit 5
42
43echo "DIR BEFORE EXEC"
44ls -l
45
46echo 'Prepare launch of the run'
47echo '----------------'
48
49NB_PROCS_NEMO=38
50NB_PROCS_TOYATM=1
51#
52echo 'Run the code'
53echo '----------------'
54time mpirun -np ${NB_PROCS_NEMO} ./nemo.exe : -np ${NB_PROCS_TOYATM} ./toyatm.exe
55echo "DIR AFTER EXEC"
56ls -l
57date
58pwd
Note: See TracBrowser for help on using the repository browser.