These two arguments were supposed to be input arguments, but weren't marked as const. Do
this here, and document the respective functions better.
void compute_2nd (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int offset,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const;
/**
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const = 0;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const = 0;
/**
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const = 0;
friend class InternalDataBase;
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
/**
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
private:
fill_fe_values (const Mapping<1,spacedim> &mapping,
const typename Triangulation<1,spacedim>::cell_iterator &cell,
const Quadrature<1> &quadrature,
- typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
FEValuesData<1,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<1,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<0> &quadrature,
- typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
FEValuesData<1,spacedim> &data) const ;
virtual void
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<0> &quadrature,
- typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<1,spacedim>::InternalDataBase &fe_internal,
FEValuesData<1,spacedim> &data) const ;
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face,
const Quadrature<dim-1> & quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const;
/**
const unsigned int face,
const unsigned int subface,
const Quadrature<dim-1> & quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const;
/**
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
virtual void
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
(const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const
{
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
// offset determines which data set
// to take (all data sets for all
const unsigned int face,
const unsigned int subface,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
// offset determines which data set
// to take (all data sets for all
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
virtual void
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
(const Mapping<dim,spacedim> &,
const typename Triangulation<dim,spacedim>::cell_iterator &,
const Quadrature<dim> &,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
FEValuesData<dim,spacedim> &,
CellSimilarity::Similarity &) const
{
const typename Triangulation<dim,spacedim>::cell_iterator &,
const unsigned int face,
const Quadrature<dim-1>& quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
const unsigned int face,
const unsigned int subface,
const Quadrature<dim-1>& quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
virtual void
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const ;
/**
fill_fe_values (const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const;
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const;
/**
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const;
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim_1> &quadrature,
- CellSimilarity::Similarity cell_similarity,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const CellSimilarity::Similarity cell_similarity,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const;
private:
const unsigned int sub_no,
const Quadrature<dim_1> &quadrature,
CellSimilarity::Similarity cell_similarity,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
const unsigned int base_element,
FEValuesData<dim,spacedim> &data) const;
const Mapping<1,2> &,
const Triangulation<1,2>::cell_iterator &,
const unsigned int,
- Mapping<1,2>::InternalDataBase &,
- InternalDataBase &,
+ const Mapping<1,2>::InternalDataBase &,
+ const InternalDataBase &,
FEValuesData<1,2> &) const
{
-
Assert(false, ExcNotImplemented());
}
const Mapping<1,3> &,
const Triangulation<1,3>::cell_iterator &,
const unsigned int,
- Mapping<1,3>::InternalDataBase &,
- InternalDataBase &,
+ const Mapping<1,3>::InternalDataBase &,
+ const InternalDataBase &,
FEValuesData<1,3> &) const
{
-
Assert(false, ExcNotImplemented());
}
const Mapping<2,3> &,
const Triangulation<2,3>::cell_iterator &,
const unsigned int,
- Mapping<2,3>::InternalDataBase &,
- InternalDataBase &,
+ const Mapping<2,3>::InternalDataBase &,
+ const InternalDataBase &,
FEValuesData<2,3> &) const
{
-
Assert(false, ExcNotImplemented());
}
const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int offset,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
- InternalDataBase &fe_internal,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_internal,
+ const InternalDataBase &fe_internal,
FEValuesData<dim,spacedim> &data) const
{
Assert ((fe_internal.update_each | fe_internal.update_once)
const Mapping<dim,spacedim> &,
const typename Triangulation<dim,spacedim>::cell_iterator &,
const Quadrature<dim> &,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &/*cell_similarity*/) const
{
const typename Triangulation<dim,spacedim>::cell_iterator &,
const unsigned int,
const Quadrature<dim-1>&,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const
{
const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
const unsigned int,
const unsigned int,
const Quadrature<dim-1>&,
- typename Mapping<dim,spacedim>::InternalDataBase &,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const
{
const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
(const Mapping<1,spacedim> &,
const typename Triangulation<1,spacedim>::cell_iterator &,
const Quadrature<1> &,
- typename Mapping<1,spacedim>::InternalDataBase &,
- typename Mapping<1,spacedim>::InternalDataBase &,
+ const typename Mapping<1,spacedim>::InternalDataBase &,
+ const typename Mapping<1,spacedim>::InternalDataBase &,
FEValuesData<1,spacedim> &,
CellSimilarity::Similarity &) const
{
const typename Triangulation<1,spacedim>::cell_iterator &,
const unsigned int face,
const Quadrature<0> &,
- typename Mapping<1,spacedim>::InternalDataBase &,
- typename Mapping<1,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<1,spacedim>::InternalDataBase &,
+ const typename Mapping<1,spacedim>::InternalDataBase &fedata,
FEValuesData<1,spacedim> &data) const
{
const UpdateFlags flags(fedata.update_once | fedata.update_each);
const unsigned int ,
const unsigned int ,
const Quadrature<0> &,
- typename Mapping<1,spacedim>::InternalDataBase &,
- typename Mapping<1,spacedim>::InternalDataBase &,
+ const typename Mapping<1,spacedim>::InternalDataBase &,
+ const typename Mapping<1,spacedim>::InternalDataBase &,
FEValuesData<1,spacedim> &) const
{
- Assert(false, ExcMessage("Should not fille subface values in 1D"));
+ Assert(false, ExcMessage("There are no sub-face values to fill in 1D!"));
}
fill_fe_values (const Mapping<dim,spacedim> & /*mapping*/,
const typename Triangulation<dim,spacedim>::cell_iterator & /*cell*/,
const Quadrature<dim> & /*quadrature*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
FEValuesData<dim,spacedim> & /*data*/,
CellSimilarity::Similarity & /*cell_similarity*/) const
{
const typename Triangulation<dim,spacedim>::cell_iterator & /*cell*/,
const unsigned int /*face*/,
const Quadrature<dim-1> & /*quadrature*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
FEValuesData<dim,spacedim> & /*data*/) const
{
// leave data fields empty
const unsigned int /*face*/,
const unsigned int /*subface*/,
const Quadrature<dim-1> & /*quadrature*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
- typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*mapping_data*/,
+ const typename Mapping<dim,spacedim>::InternalDataBase & /*fedata*/,
FEValuesData<dim,spacedim> & /*data*/) const
{
// leave data fields empty
(const Mapping<1,2> &mapping,
const Triangulation<1,2>::cell_iterator &cell,
const Quadrature<1> &quadrature,
- Mapping<1,2>::InternalDataBase &mapping_data,
- Mapping<1,2>::InternalDataBase &fedata,
+ const Mapping<1,2>::InternalDataBase &mapping_data,
+ const Mapping<1,2>::InternalDataBase &fedata,
FEValuesData<1,2> &data,
CellSimilarity::Similarity &cell_similarity) const
{
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
(const Mapping<2,3> &mapping,
const Triangulation<2,3>::cell_iterator &cell,
const Quadrature<2> &quadrature,
- Mapping<2,3>::InternalDataBase &mapping_data,
- Mapping<2,3>::InternalDataBase &fedata,
+ const Mapping<2,3>::InternalDataBase &mapping_data,
+ const Mapping<2,3>::InternalDataBase &fedata,
FEValuesData<2,3> &data,
CellSimilarity::Similarity &cell_similarity) const
{
// assert that the following dynamics
// cast is really well-defined.
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
const Mapping<1,2> &mapping,
const Triangulation<1,2>::cell_iterator &cell,
const Quadrature<1> &quadrature,
- Mapping<1,2>::InternalDataBase &mapping_data,
- Mapping<1,2>::InternalDataBase &fedata,
+ const Mapping<1,2>::InternalDataBase &mapping_data,
+ const Mapping<1,2>::InternalDataBase &fedata,
FEValuesData<1,2> &data,
CellSimilarity::Similarity &cell_similarity) const
{
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
(const Mapping<2,3> &mapping,
const Triangulation<2,3>::cell_iterator &cell,
const Quadrature<2> &quadrature,
- Mapping<2,3>::InternalDataBase &mapping_data,
- Mapping<2,3>::InternalDataBase &fedata,
+ const Mapping<2,3>::InternalDataBase &mapping_data,
+ const Mapping<2,3>::InternalDataBase &fedata,
FEValuesData<2,3> &data,
CellSimilarity::Similarity &cell_similarity) const
{
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const
{
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0,
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0,
ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const unsigned int n_q_points = quadrature.size();
const UpdateFlags flags(fe_data.current_update_flags());
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0,
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0,
ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const unsigned int n_q_points = quadrature.size();
// offset determines which data set
const unsigned int face,
const unsigned int subface,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
// convert data object to internal
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0,
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0,
ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const unsigned int n_q_points = quadrature.size();
const Mapping<dim,spacedim> &mapping,
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data,
CellSimilarity::Similarity &cell_similarity) const
{
const typename Triangulation<dim,spacedim>::cell_iterator &cell,
const unsigned int face_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const
{
compute_fill (mapping, cell, face_no, invalid_face_number, quadrature,
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim-1> &quadrature,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fe_data,
FEValuesData<dim,spacedim> &data) const
{
compute_fill (mapping, cell, face_no, sub_no, quadrature,
const unsigned int sub_no,
const Quadrature<dim_1> &quadrature,
CellSimilarity::Similarity cell_similarity,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
const unsigned int base_no,
FEValuesData<dim,spacedim> &data) const
{
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
const unsigned int n_q_points = quadrature.size();
const FiniteElement<dim,spacedim> &
const unsigned int face_no,
const unsigned int sub_no,
const Quadrature<dim_1> &quadrature,
- CellSimilarity::Similarity cell_similarity,
- typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- typename Mapping<dim,spacedim>::InternalDataBase &fedata,
+ const CellSimilarity::Similarity cell_similarity,
+ const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+ const typename Mapping<dim,spacedim>::InternalDataBase &fedata,
FEValuesData<dim,spacedim> &data) const
{
const unsigned int n_q_points = quadrature.size();
// data for this class. fails with
// an exception if that is not
// possible
- Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
- InternalData &fe_data = static_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<const InternalData *> (&fedata) != 0, ExcInternalError());
+ const InternalData &fe_data = static_cast<const InternalData &> (fedata);
// Either dim_1==dim
// (fill_fe_values) or dim_1==dim-1