All processes of the component model initialise the coupling and, if required, retrieve a local communicator for the component model internal parallelisation.
Module to be used by the component models.
Routine called by all component model processes, which initialises the coupling.2
If needed, routine called by all model processes to get the value of a local communicator to be used by the model for its internal parallelisation (CLIM-MPI1 communication technique only).
With CLIM-MPI1, all component models started in a pseudo-MPMD mode share automatically the same MPI_COMM_WORLD communicator. Another communicator has to be used for the internal parallelisation of each model. OASIS3 creates this model local communicator based on the name of the calling model; its value is returned as the first argument of prism_get_localcomm_proto routine.
With CLIM-MPI2, OASIS3 executable spawns the component model executables at the beginning of the run; the components keep their internal parallelisation context unchanged with respect to their standalone mode. In this case, calling the prism_get_localcomm_proto routine is useless but if called, the communicator MPI_COMM_WORLD will be returned as local communicator.