error in coupled model initialization
Context
Analysis
There are 2 potential issues with the initialization of the coupled model.
- The first issue is a potential dead lock at initialization when using OASIS and XIOS in several components of a coupled model. This issue was first reported here : https://forge.ipsl.jussieu.fr/nemo/ticket/2458 Now that we are using XIOS-trunk in branch_4.2 and main, we should implement it. Detail explanations are given in comments 4 if the above mentioned ticket this pdf
- The second issue rises when using AGRIF and OASIS. Again it is a long standing issue that was not properly fixed.
Fix
- For issue (1) use the nex xios function: xios_oasis_enddef
- For issue (2) check if we are Agrif_Root() or not