main.cpp:
1. Check return value of ParseFDTDSetup and exit if false
2. Use exit instead of return. These are almost identical. But
in my OpenMPI installation the process with teh highes rank
segfaults at the end when using return. This is not the case
with exit. Probably some C++ cleanup problem (destructors).
openems.cpp:
Give Parse_XML_FDTDSetup a deterministic return value.
openems_fdtd_mpi.cpp:
1. Remove the word "only" in an error message because there can
also be too many processes.
2. Fix the indexing variables for SetSplitPos in SetupMPI. Otherwise
more than one split results in an out-of-range exception and
unexpected behavior.
RunOpenEMS_MPI.m:
Apply Settings.MPI.GlobalArgs also to multi-host scenarios.
changes to main.cpp:
read global command line arguments first to allow for immediate output redirection
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>