I have installaed via macports openmpi and mpich. The fortran code compiles well but during run time gives an error saying "Attempting to use an MPI routine before initializing MPICH".
Mine is masOS Mojave 10.14.5.
1 Answer
brew is more robust these days.
Try
brew install openmpiThen
mpirun -np 4 <some task> should run with no issue