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.
job_run_CPL_TESTCASE in NEMO/trunk/tests/CPL_OASIS – NEMO

source: NEMO/trunk/tests/CPL_OASIS/job_run_CPL_TESTCASE @ 13207

Last change on this file since 13207 was 12663, checked in by clevy, 4 years ago

Add CPL_OASIS test case, see #2379

File size: 2.0 KB
Line 
1#!/bin/bash
2###################################
3## Definitions for batch system
4#SBATCH -A omr@cpu                 # Accounting information
5#SBATCH --job-name=CPL_TESTCASE    # Job name
6##SBATCH --partition=cpu_p1        # Partition Name
7#SBATCH --ntasks=29                # Total number of MPI processes
8#SBATCH --ntasks-per-node=40       # Number of MPI processes per node
9#SBATCH --hint=nomultithread       # 1  MPI process per node  (no hyperthreading)
10#SBATCH --time=00:10:00            # Maximum execution time (HH:MM:SS)
11#SBATCH --output=cpltestcase_%j    # Name of output listing file
12#SBATCH --error=cpltestcase_%j     # Name of error listing file (the same)
13###################################
14##
15## Go to submission directory
16##
17cd ${SLURM_SUBMIT_DIR}
18pwd
19CONFIG_DIR=${SLURM_SUBMIT_DIR}
20##
21## Define and create execution directory and move there
22##
23XXD=`date +%F%H%M%S`
24echo " XXD " $XXD
25mkdir -p $WORK/OUT/CPLTESTCASE/$XXD
26cd $WORK/OUT/CPLTESTCASE/$XXD
27echo "RUN directory " `pwd`
28##
29## Get input files for NEMO
30##
31DATA1DIR=$WORK/FORCING/ORCA2_ICE_PISCES_v4.0
32for file in $DATA1DIR/*
33do
34ln -s $file . || exit 2
35done
36# Get input namelist  and xml files
37for file in $CONFIG_DIR/*namelist*_ref $CONFIG_DIR/*namelist*_cfg $CONFIG_DIR/*.xml
38do
39    cp $file . || exit 3
40done
41##
42## Get input files for TOYATM, including the namcouple file
43##
44TOYATM_DIR=$CONFIG_DIR/../../../tools/TOYATM/EXP
45for file in $TOYATM_DIR/*
46do
47    cp $file . || exit 4
48done
49##
50## Get Executables
51##
52cp $CONFIG_DIR/nemo nemo.exe  || exit 5
53cp $TOYATM_DIR/../toyatm.exe . || exit 5
54
55echo "DIR BEFORE EXEC"
56ls -l
57echo '(3) Prepare launch of the run'
58echo '----------------'
59export MPIRUN="srun --mpi=pmi2 --cpu-bind=cores -K1"
60NB_PROCS_NEMO=28
61NB_PROCS_OASIS=1
62NB_PROCS_TOYATM=1
63date 
64touch ./run_file
65echo 0-27 ./nemo.exe >>./run_file
66echo 28 ./toyatm.exe >>./run_file
67echo run_file
68cat ./run_file
69##
70## Run the CPL test case using 27 processes for nemo and 1 for toyatm
71##
72echo '(4) Run the code'
73echo '----------------'
74time srun --multi-prog ./run_file
75echo "DIR AFTER EXEC"
76ls -l
77date
78pwd
Note: See TracBrowser for help on using the repository browser.