On Thu, 26 Dec 2019, Sven Schreiber wrote:
it just took me a while to realize that (inside mpi) I cannot write
the
following:
...
string aggrop = "sum"
mpireduce(&m, aggrop)
...
but instead I need to go with string substitution:
mpireduce(&m, @aggrop)
That's now fixed in git; a string variable will be accepted.
I think the doc on p. 4 of the MPI guide is misleading there when it
says string argument (for mpireduce, mpiallred, mpiscatter). It's rather
a keyword apparently. I'm guessing that a string literal would work, but
haven't tried.
A string literal does work, yes.
Allin