TimeStepBase_Tria_Flags::Flags< dim > Struct Template Reference

List of all members.

Classes

class  ExcInvalidParameter

Public Member Functions

 Flags ()
 Flags (const bool delete_and_rebuild_tria, const unsigned int wakeup_level_to_build_grid, const unsigned int sleep_level_to_delete_grid)

Public Attributes

const bool delete_and_rebuild_tria
const unsigned int wakeup_level_to_build_grid
const unsigned int sleep_level_to_delete_grid

Detailed Description

template<int dim>
struct TimeStepBase_Tria_Flags::Flags< dim >

This structure is used to tell the TimeStepBase_Tria() class how grids should be handled. It has flags defining the moments where grids shall be re-made and when they may be deleted. Also, one variable states whether grids should be kept in memory or should be deleted between to uses to save memory.


Constructor & Destructor Documentation

template<int dim>
TimeStepBase_Tria_Flags::Flags< dim >::Flags (  ) 

Default constructor; yields an exception, so is not really usable.

template<int dim>
TimeStepBase_Tria_Flags::Flags< dim >::Flags ( const bool  delete_and_rebuild_tria,
const unsigned int  wakeup_level_to_build_grid,
const unsigned int  sleep_level_to_delete_grid 
)

Constructor; see the different fields for a description of the meaning of the parameters.


Member Data Documentation

This flag determines whether the sleep and wake_up functions shall delete and rebuild the triangulation. While for small problems, this is not necessary, for large problems it is indispensable to save memory. The reason for this is that there may be several hundred time levels in memory, each with its own triangulation, which may require large amounts if there are many cells on each. Having a total of 100.000.000 cells on all time levels taken together is not uncommon, which makes this flag understandable.

This number denotes the parameter to the wake_up function at which it shall rebuild the grid. Obviously, it shall be less than or equal to the look_ahead number passed to the time step management object; if it is equal, then the grid is rebuilt the first time the wake_up function is called. If delete_and_rebuild_tria is false, this number has no meaning.

This is the opposite flag to the one above: it determines at which call to * sleep the grid shall be deleted.


The documentation for this struct was generated from the following file:

deal.II documentation generated on Mon Nov 23 22:58:35 2009 by doxygen 1.6.1