1 | Toy model TOYATM to be coupled with NEMO 4.0 |
---|
2 | without XIOS |
---|
3 | |
---|
4 | ++++++++++++++++++++++++++ |
---|
5 | OASIS3-MCT_4.0 : |
---|
6 | ++++++++++++++++++++++++++ |
---|
7 | 1. Sources: |
---|
8 | cd ${my_repository} |
---|
9 | git clone https://gitlab.com/cerfacs/oasis3-mct.git |
---|
10 | 2. Compilation: |
---|
11 | cd ${my_repository}/oasis3-mct/util/make_dir |
---|
12 | adapt make.inc with the header_Makefile corresponding to your platform $ARCH |
---|
13 | make realclean -f TopMakefileOasis3 |
---|
14 | make -f TopMakefileOasis3 |
---|
15 | |
---|
16 | +++++++++++++++++++++++++++++++++++++++++++ |
---|
17 | NEMO configuration CPL_ORCA2_ICE_PISCES : |
---|
18 | +++++++++++++++++++++++++++++++++++++++++++ |
---|
19 | 3. Sources: |
---|
20 | cd ${my_repository} |
---|
21 | git clone https://github.com/NEMO-ocean/NEMO-examples.git |
---|
22 | cd NEMO-examples |
---|
23 | git branch -a : |
---|
24 | * master |
---|
25 | remotes/origin/HEAD -> origin/master |
---|
26 | remotes/origin/cpl_toyatm |
---|
27 | remotes/origin/master |
---|
28 | git checkout cpl_toyatm |
---|
29 | |
---|
30 | Here is NEMO onfiguration CPL_ORCA2_ICE_PISCES to couple with TOYATM |
---|
31 | located in the sources of NEMO |
---|
32 | |
---|
33 | ++++++++++++++++++++++++++ |
---|
34 | NEMO 4.0 code : https://forge.ipsl.jussieu.fr/nemo/chrome/site/doc/NEMO/guide/html/install.html#download-the-nemo-source-code |
---|
35 | ++++++++++++++++++++++++++ |
---|
36 | 4. Sources: |
---|
37 | cd ${my_repository} |
---|
38 | svn co https://forge.ipsl.jussieu.fr/nemo/svn/NEMO/releases/release-4.0 |
---|
39 | mv release-4.0 NEMO |
---|
40 | cp -r NEMO-examples/CPL_ORCA2_ICE_PISCES NEMO/tests |
---|
41 | Add 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 |
---|
45 | cp NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg_ok |
---|
46 | cp NEMO/cfgs/ORCA2_ICE_PISCES/EXPREF/* NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/. |
---|
47 | mv NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg_ok NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF/namelist_cfg |
---|
48 | cd NEMO/tests/CPL_ORCA2_ICE_PISCES |
---|
49 | cp cpp_CPL_ORCA2_ICE_PISCES.fcm cpp_CPL_ORCA2_ICE_PISCES.fcm_with_io |
---|
50 | remove key_iomput from cpp_CPL_ORCA2_ICE_PISCES.fcm |
---|
51 | 5. Compilation + links with OASIS3-MCT libraries: |
---|
52 | Put your arch-your_arch_suffix.fcm in NEMO/arch |
---|
53 | (At Cerfacs : arch-mpiifort_kraken_cerfacs) |
---|
54 | cd ../../ |
---|
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) |
---|
57 | Clean: rm -rf tests/CPL_ORCA2_ICE_PISCES/BLD tests/CPL_ORCA2_ICE_PISCES/WORK |
---|
58 | |
---|
59 | ++++++++++++++++++++++++++ |
---|
60 | TOYATM : |
---|
61 | ++++++++++++++++++++++++++ |
---|
62 | 6. Sources: |
---|
63 | In ${my_repository}/NEMO/tools/TOYATM |
---|
64 | see NEMO Sources (section 4.) |
---|
65 | 7. Compilation + links with OASIS3-MCT libraries: |
---|
66 | cd NEMO/tools |
---|
67 | rm -rf TOYATM/toyatm.exe TOYATM/BLD |
---|
68 | ./maketools -m '$ARCH' -n 'TOYATM' |
---|
69 | (at Cerfacs : ./maketools -m mpiifort_kraken_cerfacs -n 'TOYATM') |
---|
70 | |
---|
71 | ++++++++++++++++++++++++++++++++++++++++ |
---|
72 | Running TOYATM+OASIS3-MCT+NEMO : |
---|
73 | ++++++++++++++++++++++++++++++++++++++++ |
---|
74 | 1. Download input files |
---|
75 | NetCDF Input files are located on the web site of NEMO_4.0 of LOCEAN: |
---|
76 | https://forge.ipsl.jussieu.fr/nemo/chrome/site/doc/NEMO/guide/html/configurations.html?highlight=users%20reference%20configurations#list-of-configurations |
---|
77 | https://zenodo.org/record/1472245 |
---|
78 | 2. Get and untar the input files : ORCA2_ICE_v4.0.tar, INPUTS_PISCES_v4.0.tar |
---|
79 | mkdir NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs |
---|
80 | cp ${download_repository}/ORCA2_ICE_v4.0.tar ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs |
---|
81 | cp ${download_repository}/INPUTS_PISCES_v4.0.tar ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs |
---|
82 | cd ${my_repository}/NEMO/tests/CPL_ORCA2_ICE_PISCES/EXP00/Inputs |
---|
83 | tar -xvf ORCA2_ICE_v4.0.tar |
---|
84 | tar -xvf INPUTS_PISCES_v4.0.tar |
---|
85 | rm ORCA2_ICE_v4.0.tar |
---|
86 | rm INPUTS_PISCES_v4.0.tar |
---|
87 | gunzip * |
---|
88 | 3. Adapt the lauching script batch_script_example or batch_script_kraken located in NEMO/tests/CPL_ORCA2_ICE_PISCES/EXPREF |
---|
89 | |
---|