|
All processes must initialize MPI by calling the mpi_init subroutine and must finalize MPI processing by calling mpi_finalize. These calls use no [IN] arguments and require only an [OUT] argument for returning an error number (0 = no error). The calling syntax for these routines is:
call mpi_init (ierr) call mpi_finalize (ierr) |
|
| Parameter | Description | Status |
|---|---|---|
ierr
|
MPI error number (0 = no error) | [OUT] |
The following example program illustrates MPI initialization and termination. Each processor prints "Hello world.".
Program hello
call mpi_init(ierr)
print*," Hello world."
call mpi_finalize(ierr)
end



