viscid.amr_grid module

AMR tools

viscid.amr_grid.dataset_to_amr_grid(dset, template_skeleton=None)[source]

Try to divine AMR-ness from a Dataset

Parameters:
  • dset (viscid.dataset.Dataset) – Should be a collection of grids that could represet a series of patches in an AMR hierarchy.
  • patch_list (AMRTemplate) – a guess at how patches are arranged for speedup. Allows us not to have to re-build the neighbor relationships if we’ve seen this patch layout before
Returns:

AMRGrid if dset looks like an AMR hierarchy, or dset itself otherwise