On Tue, 10 Aug 2021, Sven Schreiber wrote:
Am 10.08.2021 um 18:56 schrieb Allin Cottrell:
> On Tue, 10 Aug 2021, Sven Schreiber wrote:
>
>> with a fairly recent snapshot (July) I'm noticing that an MPI block is
>> failing if I replace a "funcerr" command line (and if-block) with an
>> equivalent errorif() call.
>
> It works if you respect the documented stipulation that errorif() can
> only be called within a function.
OK, my example was stupid in that respect. (Although interesting that
"funcerr" still worked.
In the example you posted funcerr didn't "work", it was never
actually invoked (blocked by a false conditional).
But in fact, my original problem _did_ occur within a function. Only
the
nesting order was reversed: The MPI block itself was inside the
function. Like this:
function ... main...
mpi
errorif(...)
end mpi
end function
OK, that's tricky. So far as gretlmpi (a separate program) is
concerned, we're not inside a function at the point where errorif()
is called. Maybe the "only inside a function" requirement could be
waived within an mpi block. Or maybe the whole program could be
rewritten as something to be run by gretlmpi from the start?
Allin