Allow coupling fields from/to files
Context
The cpl_oasis.F90 interface is supposed to send/receive coupling fields from another OASIS based model. One of our users tried to use a specific OASIS functionality, where coupling fields are read from a file. On the other way round, this user also tried to write the outgoing coupling fields into a file (via OASIS). These two functionalities are not supported by the current cpl_oasis.F90 interface.
-
Reference configuration/test case (to add, chosen or used as template) -
Modifications of versioned files: Fortran routines ( *.[Ffh]90
), namelists (namelist\_*cfg
), outputs settings (*.xml
), ... -
Additional dependencies -
New datasets -
Any other relevant information
Proposal
Both oasis_put and oasis_get routines are sending back a status information (integer). NEMO relies on this status to decide whether the NEMO variables must be updated (coupling time step) or not. I propose to modify (trunk) the status check like this:
IF ( kinfo == OASIS_Sent .OR. kinfo == OASIS_ToRest .OR. &
& kinfo == OASIS_SentOut .OR. kinfo == OASIS_ToRestOut **.OR. &**
**& kinfo == OASIS_Output** ) THEN
and
llaction = kinfo == OASIS_Recvd .OR. kinfo == OASIS_FromRest .OR. &
& kinfo == OASIS_RecvOut .OR. kinfo == OASIS_FromRestOut **.OR.** &
& **kinfo == OASIS_Input**