20 #ifndef LIBMESH_SYNC_REFINEMENT_FLAGS_H 21 #define LIBMESH_SYNC_REFINEMENT_FLAGS_H 27 #ifdef LIBMESH_ENABLE_AMR 60 std::vector<datum> & flags)
const 62 flags.resize(ids.size());
64 for (std::size_t i=0; i != ids.size(); ++i)
76 const std::vector<datum> & flags)
78 for (std::size_t i=0; i != ids.size(); ++i)
83 datum new_flag = flags[i];
85 if (old_flag != new_flag)
97 (static_cast<Elem::RefinementState>(new_flag));
109 #endif // LIBMESH_ENABLE_AMR 111 #endif // LIBMESH_SYNC_REFINEMENT_FLAGS_H
void(Elem::* set_a_flag)(const Elem::RefinementState)
The base class for all geometric element types.
void gather_data(const std::vector< dof_id_type > &ids, std::vector< datum > &flags) const
virtual const Elem & elem_ref(const dof_id_type i) const
SyncRefinementFlags(MeshBase &_mesh, get_a_flag _getter, set_a_flag _setter)
Elem::RefinementState(Elem::* get_a_flag)() const
void act_on_data(const std::vector< dof_id_type > &ids, const std::vector< datum > &flags)