next up previous
Next: Query and Info Routines Up: Termination Phase Previous: prism_terminated


prism_abort

prism_abort (comp_id, routine, message )




Table 5.27: prism_abort arguments
\begin{table}\begin{tabularx}{16cm}[t]{\vert l\vert l\vert l\vert X\vert}
\hlin...
...xttt{Character}&
user defined message\\
\hline
\end{tabularx}\end{table}




It is common practice in non parallel Fortran codes to terminate the program by calling a Fortran STOP in case a runtime error is detected. In MPI-parallelised codes it is strongly recommended to call MPI_Abort instead to ensure that all parallel processes are stopped and thus to avoid non-defined termination of the parallel program. For coupled application, the PSMILe provides a prism_abort call which guarantees a clean and well-defined shut down of the coupled model. We recommend to use prism_abort instead of a Fortran STOP or a MPI_Abort.



Laure Coquart 2011-12-01