20 #ifndef LIBMESH_SYSTEM_SUBSET_BY_SUBDOMAIN_H 21 #define LIBMESH_SYSTEM_SUBSET_BY_SUBDOMAIN_H 24 #include "libmesh/system_subset.h" 25 #include "libmesh/id_types.h" 26 #include "libmesh/parallel_object.h" 117 const std::set<subdomain_id_type> &
_list;
130 const std::set<unsigned int> *
const var_nums =
nullptr);
141 const std::set<subdomain_id_type> & subdomain_ids,
142 const std::set<unsigned int> *
const var_nums =
nullptr);
155 virtual const std::vector<unsigned int> &
dof_ids ()
const override;
173 void init (
const std::set<subdomain_id_type> & subdomain_ids);
181 void set_var_nums (
const std::set<unsigned int> *
const var_nums);
200 #endif // LIBMESH_SYSTEM_SUBSET_BY_SUBDOMAIN_H SubdomainSelection & operator=(const SubdomainSelection &)
This isn't a copyable object, so let's make sure nobody tries.
void init(const SubdomainSelection &subdomain_selection)
Initializes the class.
virtual bool operator()(const subdomain_id_type &subdomain_id) const =0
Method that decides whether a given subdomain id is included in the subset or nor.
virtual ~SystemSubsetBySubdomain()
Destructor.
void set_var_nums(const std::set< unsigned int > *const var_nums)
Sets _var_nums to either a copy of var_nums or, if that is nullptr, a set of all variable numbers tha...
virtual bool operator()(const subdomain_id_type &subdomain_id) const override
Method that decides whether a given subdomain id is included in the subset or nor.
virtual ~SubdomainSelection()
Destructor.
The libMesh namespace provides an interface to certain functionality in the library.
This class represents a subset of the dofs of a System, selected by the subdomain_id and possible the...
This is a base class for classes which represent subsets of the dofs of a System. ...
Manages consistently variables, degrees of freedom, and coefficient vectors.
virtual const std::vector< unsigned int > & dof_ids() const override
SubdomainSelection()
Constructor.
Selection of subdomain ids by a list.
Subclass for user-specified selection of subdomain ids to be included in a SystemSubset.
This class implements reference counting.
An object whose state is distributed along a set of processors.
std::set< unsigned int > _var_nums
The set of all variable numbers that are contained in the subset.
const std::set< subdomain_id_type > & _list
The actual list.
SystemSubsetBySubdomain(const System &system, const SubdomainSelection &subdomain_selection, const std::set< unsigned int > *const var_nums=nullptr)
Constructor.
SubdomainSelectionByList(const std::set< subdomain_id_type > &list)
Constructor.
std::vector< unsigned int > _dof_ids
The actual set of the dof ids.