[Developers] Support mesh refinement and multi-patch systems in CartGrid3D
Thomas Radke
tradke at aei.mpg.de
Tue Mar 4 03:07:25 CST 2008
Erik Schnetter wrote:
> Thorn CactusBase/CartGrid3D initialises the coordinate arrays and
> registers the coordinate ranges with the flesh. It currently assumes
> that it is called on all refinement levels and on all patches of a
> multi-patch evolution. This is not so with certain AMR schemes (e.g.
> with Paramesh) or if a multi-patch simulation distributes different
> patches to different processors.
>
> Since CartGrid3D does not actually know anything about mesh refinement
> or multi-patch setups, I found no way to make things work cleanly in
> all cases. I therefore suggest to introduce two new parameters as
> work-around. These parameters select in which mode the coordinate
> range registration is called: level mode, singlemap mode, or local mode:
>
> BOOLEAN set_ranges_on_all_levels "Set the coordinate ranges on all levels"
> BOOLEAN set_ranges_on_all_maps "Set the coordinate ranges on all maps"
>
> The default behaviour is the current behaviour, namely initialisation
> in local mode. Paramesh simulations would use
> "set_ranges_on_all_levels", while multi-patch simulations would use
> "set_ranges_on_all_maps".
Sounds good to me.
How about introducing a single keyword parameter instead of the
suggested booleans ?
--
Cheers, Thomas.
More information about the Developers
mailing list