* cell or face.
*/
void add(const std::string& name,
- bool values = true,
- bool gradients = false,
- bool hessians = false);
+ const bool values = true,
+ const bool gradients = false,
+ const bool hessians = false);
/**
* Does the same as the function
/**
* The vector index for the ith value
*/
- unsigned int value_index (unsigned int i) const;
+ unsigned int value_index (const unsigned int i) const;
/**
* The vector index for the ith gradient
*/
- unsigned int gradient_index (unsigned int i) const;
+ unsigned int gradient_index (const unsigned int i) const;
/**
* The vector index for the ith Hessian
*/
- unsigned int hessian_index (unsigned int i) const;
+ unsigned int hessian_index (const unsigned int i) const;
/**
* Print the contents of the
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const;
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const;
/**
* Fill the local data vector
std::vector<std::vector<std::vector<Tensor<1,dim> > > >& gradients,
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
- unsigned int level,
+ const unsigned int level,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const;
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const;
/**
* The memory used by this object.
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const;
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const;
/**
* The memory used by this object.
std::vector<std::vector<std::vector<Tensor<1,dim> > > >& gradients,
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
- unsigned int level,
+ const unsigned int level,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const;
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const;
/**
* The memory used by this object.
//----------------------------------------------------------------------//
inline void
- VectorSelector::add(const std::string& name, bool values, bool gradients, bool hessians)
+ VectorSelector::add(const std::string& name,
+ const bool values,
+ const bool gradients,
+ const bool hessians)
{
- if (values) value_selection.add(name);
- if (gradients) gradient_selection.add(name);
- if (hessians) hessian_selection.add(name);
+ if (values)
+ value_selection.add(name);
+ if (gradients)
+ gradient_selection.add(name);
+ if (hessians)
+ hessian_selection.add(name);
}
inline unsigned int
- VectorSelector::value_index(unsigned int i) const
+ VectorSelector::value_index(const unsigned int i) const
{
return value_selection(i);
}
inline unsigned int
- VectorSelector::gradient_index(unsigned int i) const
+ VectorSelector::gradient_index(const unsigned int i) const
{
return gradient_selection(i);
}
inline unsigned int
- VectorSelector::hessian_index(unsigned int i) const
+ VectorSelector::hessian_index(const unsigned int i) const
{
return hessian_selection(i);
}
std::vector<std::vector<std::vector<Tensor<2,dim> > > >&,
const FEValuesBase<dim,spacedim>&,
const std::vector<unsigned int>&,
- unsigned int,
- unsigned int,
- unsigned int,
- unsigned int) const
+ const unsigned int,
+ const unsigned int,
+ const unsigned int,
+ const unsigned int) const
{
Assert(false, ExcNotImplemented());
}
std::vector<std::vector<std::vector<Tensor<1,dim> > > >&,
std::vector<std::vector<std::vector<Tensor<2,dim> > > >&,
const FEValuesBase<dim,spacedim>&,
- unsigned int,
+ const unsigned int,
const std::vector<unsigned int>&,
- unsigned int,
- unsigned int,
- unsigned int,
- unsigned int) const
+ const unsigned int,
+ const unsigned int,
+ const unsigned int,
+ const unsigned int) const
{
Assert(false, ExcNotImplemented());
}
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const
{
AssertDimension(values.size(), this->n_values());
AssertDimension(gradients.size(), this->n_gradients());
std::vector<std::vector<std::vector<Tensor<1,dim> > > >& gradients,
std::vector<std::vector<std::vector<Tensor<2,dim> > > >& hessians,
const FEValuesBase<dim,spacedim>& fe,
- unsigned int level,
+ const unsigned int level,
const std::vector<unsigned int>& index,
- unsigned int component,
- unsigned int n_comp,
- unsigned int start,
- unsigned int size) const
+ const unsigned int component,
+ const unsigned int n_comp,
+ const unsigned int start,
+ const unsigned int size) const
{
AssertDimension(values.size(), this->n_values());
AssertDimension(gradients.size(), this->n_gradients());