source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/RUN_DIR/create_runfile.sh

Last change on this file was 5869, checked in by ymipsl, 3 years ago

Create RUN_DIR ensemble

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 559 bytes
Line 
1#!/bin/bash
2pool_size=$1
3pool_rank=$2
4
5nlmdz=47
6nopa=90
7nxios=1
8
9rm -f run_file
10for (( c=0; c<$pool_size; c++ ))
11do
12  whole_ensemble_rank=$((${pool_size}*${pool_rank}+$c))
13  echo "${nlmdz}-2 env OMP_NUM_THREADS=2 MEMBER=${whole_ensemble_rank} ./script_lmdz.x.ksh" >> run_file
14done 
15for (( c=0; c<$pool_size; c++ ))
16do
17  whole_ensemble_rank=$((${pool_size}*${pool_rank}+$c))
18  echo "${nopa}-1 env OMP_NUM_THREADS=2 MEMBER=${whole_ensemble_rank} ./script_opa.xx.ksh" >> run_file
19done 
20echo "${nxios}-1 env OMP_NUM_THREADS=1  ./script_xios.x.ksh" >> run_file
21
Note: See TracBrowser for help on using the repository browser.