Detailed Description
Base class for adaptive refinement criteria.
- See also:
Syntax reference
Function Documentation
void gfs_adapt_stats_init |
( |
GfsAdaptStats * |
s | ) |
|
- Parameters:
-
Initializes or reset s.
void gfs_adapt_stats_update |
( |
GfsAdaptStats * |
s | ) |
|
void gfs_domain_reshape |
( |
GfsDomain * |
domain, |
|
|
guint |
depth |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
depth | the depth of domain. |
Force the grading of the tree hierarchy of domain, matches the boundaries, recomputes merged cells and applies the boundary conditions for all variables.
gboolean gfs_simulation_adapt |
( |
GfsSimulation * |
simulation | ) |
|
- Parameters:
-
simulation | a #GfsSimulation. |
Checks if any mesh adaptation is necessary and adapts the mesh using an OR combination of all the regular criteria defined in simulation->adapts.
If any one or several criteria are defined as "not" refinements, the mesh will be refined only if all of this criteria AND any other regular criterion is verified.
- Returns:
- TRUE if the mesh changed, FALSE otherwise.