Functor object that can be passed to FEMesh::Adapt(Func, bool) to perform marking based on a container of flags.
More...
template<typename Container, typename = std::remove_cv_t<typename Container::value_type>>
struct ptems::FlagMarking< Container, typename >
Functor object that can be passed to FEMesh::Adapt(Func, bool) to perform marking based on a container of flags.
A container of flags can be one of the following:
- A random access container of AdaptationType (i.e., supports operator[] and size()) containing an AdaptationType for each element
- An associate container (map/unordered_map etc) of element number (std::size_t) to AdaptationType containing an AdaptationType for SOME elements, all other elements are left unrefined
- A container of element numbers to perform mesh refinement on, all other elements are left unrefined
- Warning
- This functor keeps a REFERENCE to the container. As such the containers MUST stay in scope while this functor is used (until FEMesh::Adapt call returns)
- Note
- Use MarkingFromFlags to create an instance of FlagMarking, as then the template parameter is automatically deduced.
- Template Parameters
-
The documentation for this struct was generated from the following file: