On 7/15/25 07:16, LY XXXiao wrote:
>
> What we want:
> There is a distributed refined mesh1 with defined parameters. This mesh has
> been saved as *.vtu file, with 'serialize_triangulation=true'.
> And we want to read it in from the vtu file as a distributed triangulation.
>
> What we have done:
> As you suggested, we attached the distributed triangulation to the gridin and
> used read_vtu(), the n_global_active_cells() is however, 0. I have attached
> the test snippet here. Hopefully, you or someone else will have the time to
> correct my understanding of this function.
I don't think you can read in distributed, refined triangulations that way.
(Not in the sense of "this isn't implemented", but "this is conceptually not
possible".) If you want to write and read distributed, refined triangulations,
you should use the serialization mechanism for triangulations. VTU is not the
right format for this, there is not enough semantic information in VTU files
to re-create triangulations that way.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/