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);
An object whose state is distributed along a set of processors.
This class implements reference counting.
Selection of subdomain ids by a list.
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.
const std::set< subdomain_id_type > & _list
The actual list.
Subclass for user-specified selection of subdomain ids to be included in a SystemSubset.
virtual ~SubdomainSelection()
Destructor.
SubdomainSelection(const SubdomainSelection &)
This isn't a copyable object, so let's make sure nobody tries.
SubdomainSelection()
Constructor.
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.
SubdomainSelection & operator=(const SubdomainSelection &)
This isn't a copyable object, so let's make sure nobody tries.
This class represents a subset of the dofs of a System, selected by the subdomain_id and possible the...
virtual const std::vector< unsigned int > & dof_ids() const override
std::set< unsigned int > _var_nums
The set of all variable numbers that are contained in the subset.
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.
void init(const SubdomainSelection &subdomain_selection)
Initializes the class.
std::vector< unsigned int > _dof_ids
The actual set of the dof ids.
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.
The libMesh namespace provides an interface to certain functionality in the library.