Work flow scripts for operational ecFlow suite.
- 0.2.0 - Version compatible with the Jaci supercomputer and the MONAN Model 1.4.3-rc.
- 0.1.0 - First version compatible with the Egeon cluster.
- Clone the WorkFlow-Oper repository into your work directory, and ask for your tag:
$ git clone https://github.com/monanadmin/MONAN-WorkFlow-OPER.git
$ cd MONAN-WorkFlow-OPER
$ git checkout 0.2.0
Then you will get the follow directories and scripts struct:
|-- MONAN-WorkFlow-OPER
| |-- LICENSE
| |-- MONAN_PRE_OPER
| | `-- MONAN
| | |-- 00
| | | |-- model.ecf
| | | |-- post.ecf
| | | |-- pre.ecf
| | |-- 12
| | | |-- model.ecf -> ../00/model.ecf
| | | |-- post.ecf -> ./00/post.ecf
| | | |-- pre.ecf -> ../00/pre.ecf
| | |-- install_MONAN-MODEL-scripts.bash
| |-- MONAN_PRE_OPER.def
| |-- README.md
| |-- VERSION.txt
| |-- eclogs
| | |-- inicializadef.bash
| | |-- deletadef.bash
| | |-- atualizadef.bash
| | |-- start.ksh
| | |-- stop.ksh
| | `-- template.ecf
| `-- includes
| |-- head.h
| `-- tail.h
- Put your root work-directory and host name machine in the
MONAN_PRE_OPER.def:
$ cd MONAN-WorkFlow-OPER
$ vi MONAN_PRE_OPER.def
edit ECF_HOME "/<lustre_or_beegfs_root>/<your_root_work_dir>/MONAN-WorkFlow-OPER"
edit ECF_HOST "<your_ecf_host_name>.cptec.inpe.br"
edit ECF_INCLUDE "/<lustre_or_beegfs_root>/<your_root_work_dir>/MONAN-WorkFlow-OPER/includes"
$ vi includes/head.h
## Output directories:-----------------------------------------------------------------------------------
export DIR_DADOS=/<lustre_or_beegfs_root>/<your_root_work_dir>/MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN; mkdir -p ${DIR_DADOS}
export DIRFLUSHOUT=/<lustre_or_beegfs_root>/<your_root_work_dir>/<any_final_output_dir>; mkdir -p ${DIRFLUSHOUT}
#-------------------------------------------------------------------------------
- Now, you must install the
scritps_CD-CTand MONAN model repositories. Theinstall_MONAN-MODEL-scripts.bashwill do it in the right place automatically. Before run it, check if thescritps_CD-CT, MONAN-Model and Convert_MPAS versions are the same you suppose to use:
$ cd MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN
$ cat install_MONAN-MODEL.bash
These vars are important to check:
SCRIPTSCDCT_VERSION=1.4.0
MONAN_VERSION=1.4.3-rc
CONVERT_MPAS_VERSION=1.2.0
Now you can run it:
$ cd MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN
$ ./install_MONAN-MODEL.bash
- After this step, you should get the scripts_CD-CT installed and the MONAN-Model installed and compiled:
The MONAN scripts to run manually are here: MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/scripts, please check it:
2.pre_processing.bash (to run the pre-processing)
3.run_model.bash (to run the model)
4.run_post.bash (to run the post-processing)
The MONAN source are installed and compiled into the scripts_CD-CD/sources dir: MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/scripts:
MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/sources/MONAN-Model_1.4.3-rc
All the executables are available in the scripts_CD-CD/execs :
MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/execs:
build_tables
atmosphere_model (Model main executable)
init_atmosphere_model (pre-processing executable)
convert_mpas (Post-processing executable)
ungrib.exe
In this directory you can get all the repository versions that are installed:
MONAN-VERSION.txt
CONVMPAS-VERSION.txt
This vrsions are showed in the VERSION EcFlow label info field.
- After all these steps, you can adjust your
ECF_PORTand start your ECFlow suiteMONAN_PRE_OPER.def.
We have some scripts that help with this task and are located in the 'eclogs' folder. To use them, update the 'ecflow server port' within these scripts.
- The main settings are in the
setenvfiles.
MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/scripts/setenv.bash
This file contains the COMPILER variable, which can be changed to other compilers on the Jaci supercomputer, on egeon, it is set to the GNU default. It also differentiates between compilation tags and the SLURM and PBS submission environment.
MONAN-WorkFlow-OPER/MONAN_PRE_OPER/MONAN/scripts_CD-CT/scripts/stools/setenv_PBS_ian_intel.bash
In this file, we can change the number of nodes and MPI Tasks or cores per nodes for the MODEL phase and submission queue, example in PBS (Jaci supercomputer) during the model execution phase:
# Model phase:
export MODEL_QUEUE="oper"
export MODEL_ncores=8192
export MODEL_nnodes=32
export MODEL_ncpus=256
export MODEL_ncpn=256
Done!
You are ready to operate you suite MONAN. Enjoy it!
If you have any problems with this suite operation, or suggestions/colaborations, please let us know.