Am 12.08.2020 um 23:37 schrieb Sven Schreiber:
Am 12.08.2020 um 17:49 schrieb Allin Cottrell:
> In passing a list via a bundle you're just passing a vector
of series ID
> numbers. This will be usable qua list in the target function only if, in
> the dataset context in the target, there exist series answering to those
> IDs.
Hm, right. I guess I need to use "--send-data", actually I don't
remember why I didn't do that right away.
But if I were to do only: "--send-data=mylist", are the ID numbers of
mylist in the original dataset somehow translated to the MPI context
where only the subset is present?
Answering myself after some testing: the ID numbers inside the MPI block
again start from 1 and are simply consecutive. Series need to be
referenced by name. OK.
The 'mylist' object itself does not exist inside the MPI block, so
syntax like mylist[1] is impossible. Fair enough.
Getting to the point of lists in bundles, the following provokes an
error "The list b.L does not exist" or sth like that:
<hansl>
nulldata 10
series x = 0
series y = normal()
list L = y # So ID number 2
bundle b = null
list b.L = L
mpi --send-data=b.L
if $mpirank == 0
varlist
endif
end mpi
</hansl>
Given that inside the mpi block b.L would not exist (just like mylist
above didn't exist), I think it would be OK to allow this kind of
construct. The list b.L would define some variables to be passed into
MPI just like the list mylist did. Everything is in the context of the
current dataset anyway.
thanks
sven