class FEValuesData : public internal::FEValues::MappingRelatedData<dim,spacedim>,
public internal::FEValues::FiniteElementRelatedData<dim,spacedim>
{
-public:
- /**
- * Initialize all vectors to correct size.
- */
- void initialize (const unsigned int n_quadrature_points,
- const FiniteElement<dim,spacedim> &fe,
- const UpdateFlags flags);
-
- /**
- * Original update flags handed to the constructor of FEValues.
- */
- UpdateFlags update_flags;
};
*/
const SmartPointer<const FiniteElement<dim,spacedim>,FEValuesBase<dim,spacedim> > fe;
-
/**
* Internal data of mapping.
*/
*/
SmartPointer<typename Mapping<dim,spacedim>::InternalDataBase,FEValuesBase<dim,spacedim> > fe_data;
+ /**
+ * Original update flags handed to the constructor of FEValues.
+ */
+ UpdateFlags update_flags;
+
/**
* Initialize some update flags. Called from the @p initialize functions of
* derived classes, which are in turn called from their constructors.
ExcIndexRange(component, 0, fe_values.fe->n_components()));
//TODO: we'd like to use the fields with the same name as these
-// variables from FEValuesData, but they aren't initialized yet
+// variables from FEValuesBase, but they aren't initialized yet
// at the time we get here, so re-create it all
const std::vector<unsigned int> shape_function_to_row_table
= make_shape_function_to_row_table (*fe_values.fe);
fe_values.fe->n_components()));
//TODO: we'd like to use the fields with the same name as these
-// variables from FEValuesData, but they aren't initialized yet
+// variables from FEValuesBase, but they aren't initialized yet
// at the time we get here, so re-create it all
const std::vector<unsigned int> shape_function_to_row_table
= make_shape_function_to_row_table (*fe_values.fe);
0,
fe_values.fe->n_components()));
//TODO: we'd like to use the fields with the same name as these
-// variables from FEValuesData, but they aren't initialized yet
+// variables from FEValuesBase, but they aren't initialized yet
// at the time we get here, so re-create it all
const std::vector<unsigned int> shape_function_to_row_table
= make_shape_function_to_row_table (*fe_values.fe);
0,
fe_values.fe->n_components()));
//TODO: we'd like to use the fields with the same name as these
-// variables from FEValuesData, but they aren't initialized yet
+// variables from FEValuesBase, but they aren't initialized yet
// at the time we get here, so re-create it all
const std::vector<unsigned int> shape_function_to_row_table
= make_shape_function_to_row_table (*fe_values.fe);
-/* --------------------- FEValuesData ----------------- */
-
-
namespace internal
{
namespace FEValues
}
-template <int dim, int spacedim>
-void
-FEValuesData<dim,spacedim>::initialize (const unsigned int n_quadrature_points,
- const FiniteElement<dim,spacedim> &fe,
- const UpdateFlags flags)
-{
- // initialize the base classes
- internal::FEValues::MappingRelatedData<dim,spacedim>::initialize(n_quadrature_points, flags);
- internal::FEValues::FiniteElementRelatedData<dim,spacedim>::initialize(n_quadrature_points, fe, flags);
-
- this->update_flags = flags;
-}
-
-
/*------------------------------- FEValuesBase ---------------------------*/
this->mapping_data = this->mapping->get_data(flags, quadrature);
this->fe_data = this->fe->get_data(flags, *this->mapping, quadrature);
- // set up objects within this class
- FEValuesData<dim,spacedim>::initialize (this->n_quadrature_points, *this->fe, flags);
+ // initialize the base classes
+ internal::FEValues::MappingRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, flags);
+ internal::FEValues::FiniteElementRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, *this->fe, flags);
+
+ this->update_flags = flags;
}
this->mapping_data = this->mapping->get_face_data(flags, this->quadrature);
this->fe_data = this->fe->get_face_data(flags, *this->mapping, this->quadrature);
- // set up objects within this class
- FEValuesData<dim,spacedim>::initialize(this->n_quadrature_points, *this->fe, flags);
+ // initialize the base classes
+ internal::FEValues::MappingRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, flags);
+ internal::FEValues::FiniteElementRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, *this->fe, flags);
+
+ this->update_flags = flags;
}
*this->mapping,
this->quadrature);
- // set up objects within this class
- FEValuesData<dim,spacedim>::initialize(this->n_quadrature_points, *this->fe, flags);
+ // initialize the base classes
+ internal::FEValues::MappingRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, flags);
+ internal::FEValues::FiniteElementRelatedData<dim,spacedim>::initialize(this->n_quadrature_points, *this->fe, flags);
+
+ this->update_flags = flags;
}