Ticket #2379: README_TOYATM_NEMO_12022020.txt

File README_TOYATM_NEMO_12022020.txt, 3.6 KB (added by emalod, 6 months ago)
Line 
1Toy model TOYATM to be coupled with NEMO 4.0
2without XIOS
3
4++++++++++++++++++++++++++
5OASIS3-MCT_4.0 :
6++++++++++++++++++++++++++
71. Sources:
8cd ${my_repository}
9git clone https://gitlab.com/cerfacs/oasis3-mct.git
102. Compilation:
11cd ${my_repository}/oasis3-mct/util/make_dir
12adapt make.inc with the header_Makefile corresponding to your platform $ARCH
13make realclean -f TopMakefileOasis3
14make -f TopMakefileOasis3
15
16+++++++++++++++++++++++++++++++++++++++++++
17NEMO configuration CPL_ORCA2_ICE_PISCES :
18+++++++++++++++++++++++++++++++++++++++++++
193. Sources:
20cd ${my_repository}
21git clone https://github.com/NEMO-ocean/NEMO-examples.git
22cd NEMO-examples
23git branch -a :
24* master
25  remotes/origin/HEAD -> origin/master
26  remotes/origin/cpl_toyatm
27  remotes/origin/master
28git checkout cpl_toyatm
29
30Here is NEMO onfiguration CPL_ORCA2_ICE_PISCES to couple with TOYATM
31located in the sources of NEMO
32
33++++++++++++++++++++++++++
34NEMO 4.0 code : https://forge.ipsl.jussieu.fr/nemo/chrome/site/doc/NEMO/guide/html/install.html#download-the-nemo-source-code
35++++++++++++++++++++++++++
364. Sources:
37cd ${my_repository}
38svn co https://forge.ipsl.jussieu.fr/nemo/svn/NEMO/releases/release-4.0
39mv release-4.0 NEMO
40cp -r NEMO-examples/CPL_ORCA2_ICE_PISCES NEMO/tests
41Add CPL_ORCA2_ICE_PISCES in NEMO/tests/demo_cfgs.txt
42    CPL_ORCA2_ICE_PISCES OCE ICE TOP
43### A dire a SM : Il manque les fichiers xml, ref, necessaires pour tourner dans tests/CPL_ORCA2_ICE_PISCES/EXPREF
44### Attention il faut garder le bon namelist_cfg
45cp NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg_ok
46cp NEMO/cfgs/ORCA2_ICE_PISCES/EXPREF/* NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/.
47mv NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg_ok NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg
48cd NEMO/tests/CPL_ORCA2_ICE_PISCES
49cp cpp_CPL_ORCA2_ICE_PISCES.fcm cpp_CPL_ORCA2_ICE_PISCES.fcm_with_io
50remove key_iomput from cpp_CPL_ORCA2_ICE_PISCES.fcm
515. Compilation + links with OASIS3-MCT libraries:
52Put your arch-your_arch_suffix.fcm in NEMO/arch
53(At Cerfacs : arch-mpiifort_kraken_cerfacs)
54cd ../../
55./makenemo -m $ARCH -j 6 -a CPL_ORCA2_ICE_PISCES
56(At Cerfacs : ./makenemo -m mpiifort_kraken_cerfacs -j 6 -a CPL_ORCA2_ICE_PISCES)
57Clean: rm -rf tests/CPL_ORCA2_ICE_PISCES/BLD tests/CPL_ORCA2_ICE_PISCES/WORK
58
59++++++++++++++++++++++++++
60TOYATM :
61++++++++++++++++++++++++++
626. Sources:
63In ${my_repository}/NEMO/tools/TOYATM
64see NEMO Sources (section 4.)
657. Compilation + links with OASIS3-MCT libraries:
66cd NEMO/tools
67rm -rf TOYATM/toyatm.exe TOYATM/BLD
68./maketools -m '$ARCH' -n 'TOYATM'
69(at Cerfacs : ./maketools -m mpiifort_kraken_cerfacs -n 'TOYATM')
70
71++++++++++++++++++++++++++++++++++++++++
72Running TOYATM+OASIS3-MCT+NEMO :
73++++++++++++++++++++++++++++++++++++++++
741. Download input files
75NetCDF Input files are located on the web site of NEMO_4.0 of LOCEAN:
76https://forge.ipsl.jussieu.fr/nemo/chrome/site/doc/NEMO/guide/html/configurations.html?highlight=users%20reference%20configurations#list-of-configurations
77https://zenodo.org/record/1472245
782. Get and untar the input files : ORCA2_ICE_v4.0.tar, INPUTS_PISCES_v4.0.tar
79mkdir NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs
80cp ${download_repository}/ORCA2_ICE_v4.0.tar ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs
81cp ${download_repository}/INPUTS_PISCES_v4.0.tar ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs
82cd ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs
83tar -xvf ORCA2_ICE_v4.0.tar
84tar -xvf INPUTS_PISCES_v4.0.tar
85rm ORCA2_ICE_v4.0.tar
86rm INPUTS_PISCES_v4.0.tar
87gunzip *
883. Adapt the lauching script batch_script_example or batch_script_kraken located in NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF
89