next up previous
Next: prism_initialized Up: Initialisation phase Previous: prism_init_comp


prism_get_localcomn

prism_get_localcomm (comp_id, local_comm, ierror)




Table 5.3: prism_get_localcomm arguments
\begin{table}\begin{tabularx}{16cm}[t]{\vert l\vert l\vert l\vert X\vert}
\hlin...
...\texttt{Integer}&
returned error code\\
\hline
\end{tabularx}\end{table}




MPI communicators for the internal communication of the application and/or the components, separated from the MPI communicators used for coupling exchanges, are provided by the PSMILe and can be accessed via prism_get_local_comm.

If the argument comp_id is the component ID returned by routine prism_init_comp, then local_comm is a communicator gathering all component processes running the related comp_name component as prescribed by the user in the SCC XML file (see section 6.4) ; if instead, the predefined named integer PRISM_appl_id is provided, the returned local_comm is a communicator gathering all processes of the application.

This routine needs to be called only by MPI parallel code; it is the only MPI specific call in the PSMILe API.



Laure Coquart 2011-12-01