16 #ifndef dealii_persistent_tria_h 17 #define dealii_persistent_tria_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/smartpointer.h> 24 #include <deal.II/grid/tria.h> 28 DEAL_II_NAMESPACE_OPEN
108 template <
int dim,
int spacedim = dim>
116 static const unsigned int spacedimension = spacedim;
175 restore(
const unsigned int step_no);
275 DEAL_II_NAMESPACE_CLOSE
std::vector< Point< spacedim > > vertices
unsigned int n_refinement_steps() const
virtual void clear_flags()
virtual void create_triangulation(const std::vector< Point< spacedim >> &vertices, const std::vector< CellData< dim >> &cells, const SubCellData &subcelldata) override
virtual void execute_coarsening_and_refinement() override
static ::ExceptionBase & ExcFlagsNotCleared()
SmartPointer< const Triangulation< dim, spacedim >, PersistentTriangulation< dim, spacedim > > coarse_grid
static const unsigned int dimension
virtual std::size_t memory_consumption() const override
std::vector< std::vector< bool > > refine_flags
virtual void copy_triangulation(const Triangulation< dim, spacedim > &tria) override
virtual void create_triangulation_compatibility(const std::vector< Point< spacedim >> &vertices, const std::vector< CellData< dim >> &cells, const SubCellData &subcelldata) override
#define DeclException0(Exception0)
PersistentTriangulation(const Triangulation< dim, spacedim > &coarse_grid)
virtual void write_flags(std::ostream &out) const
static ::ExceptionBase & ExcTriaNotEmpty()
virtual void read_flags(std::istream &in)
std::vector< std::vector< bool > > coarsen_flags
virtual ~PersistentTriangulation() override=default