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

Last change on this file was 13242, checked in by clevy, 4 years ago

Update vlaidation script and READN for CPL_OASIS test case, see #2379

File size: 2.3 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## CONFIG_DIR is submission directory
16##
17CONFIG_DIR=${SLURM_SUBMIT_DIR}
18#
19cd ${CONFIG_DIR}
20pwd
21##
22## Define and create execution directory and move there
23##
24XXD=`date +%F%H%M%S`
25echo " XXD " $XXD
26mkdir -p $WORK/OUT/CPLTESTCASE/$XXD
27cd $WORK/OUT/CPLTESTCASE/$XXD
28echo "RUN directory " `pwd`
29##
30## Get input files for NEMO
31##
32DATA1DIR=$WORK/FORCING/ORCA2_ICE_PISCES_v4.0
33for file in $DATA1DIR/*
34do
35ln -s $file . || exit 2
36done
37# Get input namelist  and xml files
38for file in $CONFIG_DIR/*namelist*_ref $CONFIG_DIR/*namelist*_cfg $CONFIG_DIR/*.xml
39do
40    cp $file . || exit 3
41done
42##
43## Get input files for TOYATM, including the namcouple file
44##
45TOYATM_DIR=$CONFIG_DIR/../../../tools/TOYATM/EXP
46for file in $TOYATM_DIR/*
47do
48    cp $file . || exit 4
49done
50##
51## Get Executables
52##
53cp $CONFIG_DIR/nemo nemo.exe  || exit 5
54cp $TOYATM_DIR/toyatm.exe . || exit 5
55##
56## Get script generating summary report
57cp $CONFIG_DIR/gen_report.sh .
58
59echo "DIR BEFORE EXEC"
60ls -l
61echo '(3) Prepare launch of the run'
62echo '----------------'
63export MPIRUN="srun --mpi=pmi2 --cpu-bind=cores -K1"
64NB_PROCS_NEMO=28
65NB_PROCS_OASIS=1
66NB_PROCS_TOYATM=1
67date 
68touch ./run_file
69echo 0-27 ./nemo.exe >>./run_file
70echo 28 ./toyatm.exe >>./run_file
71echo run_file
72cat ./run_file
73##
74## Run the CPL test case using 27 processes for nemo and 1 for toyatm
75##
76echo '(4) Run the code'
77echo '----------------'
78time srun --multi-prog ./run_file
79echo "DIR AFTER EXEC"
80ls -l
81date
82pwd
83##
84## simple report generator for the test case
85##
86./gen_report.sh | tee CPL_OASIS_results
87
88
89cat CPL_OASIS_results
90## Copy Summary of results back into submission directory
91cp CPL_OASIS_results ${CONFIG_DIR}
Note: See TracBrowser for help on using the repository browser.