This function tests to see if MPI is already initialized. The general syntax for its use is
x = mpiinitialized
It returns a logical 1 if mpiinit
has already been called,
and a logical 0 otherwise.
Here we call mpiinitialized
before and after a call to
mpiinit
.
--> mpiinitialized ans = <logical> - size: [1 1] 0 --> mpiinit --> mpiinitialized ans = <logical> - size: [1 1] 1