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.
run_job.sh in NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/ICB/EXPREF – NEMO

source: NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/ICB/EXPREF/run_job.sh @ 14038

Last change on this file since 14038 was 13899, checked in by mathiot, 4 years ago

ticket #1900: update branch to trunk and add ICB test case

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2#OAR -n nemo_sette
3#OAR -l core=2,walltime=00:05:00
4#OAR -O nemo_sette.o%jobid%
5#OAR -E nemo_sette.e%jobid%
6#OAR --project tipaccs
7
8. ~/bin/load_intelmodule.bash
9
10  export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
11  export OMP_NUM_THREADS=1
12  cd $PBS_O_WORKDIR
13  export XIO_HOME=$xios_path
14#
15  echo " ";
16  export OMP_NUM_THREADS=1
17  O_PER_NODE=2
18  X_PER_NODE=2
19  OCORES=2
20  XCORES=0
21  if [ $OCORES -le 32 ] ; then O_PER_NODE=$OCORES; fi
22  export SETTE_DIR=/bettik/mathiotp/NEMO/NEMO_dev/branches/2020/tickets_icb_1900/sette
23
24  export EXE_DIR=/bettik/mathiotp/NEMO/NEMO_dev/branches/2020/tickets_icb_1900/tests/ICB/EXP00/
25  ulimit -c unlimited
26  ulimit -s unlimited
27#
28# end of set up
29###############################################################
30#
31# change to the working directory
32#
33  cd $EXE_DIR
34  echo Directory is `pwd`
35 
36  if [ $XCORES -gt 0 ]; then
37#
38#  Run MPMD case
39#
40     #XIOS will run on a separate node so will run in parallel queue
41     if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then
42        cp ${XIO_HOME}/bin/xios_server.exe .
43     fi
44     if [ ! -f ./xios_server.exe ]; then
45        echo "./xios_server.exe not found"
46        echo "run aborted"
47        exit
48     fi
49       echo time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./nemo
50            time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./nemo
51#
52  else
53#
54# Run SPMD case
55#
56    echo time mpirun -n $OCORES ./nemo
57         time mpirun -n $OCORES ./nemo
58  fi
59#
Note: See TracBrowser for help on using the repository browser.