Adding the support for multi-domain simulations with different number of blocks for each process in ParaView backend.
In the current version of ParaView backend in Version 1.3.0, it is supposed that ALL of the processes write the same number of blocks. This means that if there are size
processes with its ranking as rank
and each of them writing N
blocks, and each process has a local index of its blocks, e.g. index
then:
- There will be
N x size
blocks in the whole simulation. - The global index for each simulation is
rank x N + index
The above assumptions, are only valid iff all processes write the same number of blocks, otherwise the mentioned calculations are invalid. As a result, we should implement more sophisticated algorithms for calculating the global index of each block in ParaView backend.