This class represents a subset of the dofs of a System, selected by the subdomain_id and possible the...
std::set< unsigned int > _var_nums
The set of all variable numbers that are contained in the subset.
virtual ~SubdomainSelection()
Destructor.
virtual const std::vector< unsigned int > & dof_ids() const override
SystemSubsetBySubdomain(const System &system, const SubdomainSelection &subdomain_selection, const std::set< unsigned int > *const var_nums=nullptr)
Constructor.
SubdomainSelection & operator=(const SubdomainSelection &)
This isn't a copyable object, so let's make sure nobody tries.
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.
std::vector< unsigned int > _dof_ids
The actual set of the dof ids.
void init(const SubdomainSelection &subdomain_selection)
Initializes the class.
const std::set< subdomain_id_type > & _list
The actual list.
Selection of subdomain ids by a list.
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.
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 ~SystemSubsetBySubdomain()
Destructor.
SubdomainSelectionByList(const std::set< subdomain_id_type > &list)
Constructor.
Subclass for user-specified selection of subdomain ids to be included in a SystemSubset.