* values are accessed.
*/
FunctionDerivative (const Function<dim> &f,
- const std::vector<Point<dim> > &direction,
+ const typename std::vector<Point<dim> > &direction,
const double h = 1.e-6);
/**
* coefficients in each space
* direction as argument.
*/
- FourierSineSum (const std::vector<Point<dim> > &fourier_coefficients,
+ FourierSineSum (const typename std::vector<Point<dim> > &fourier_coefficients,
const std::vector<double> &weights);
/**
* Stored Fourier coefficients
* and weights.
*/
- const std::vector<Point<dim> > fourier_coefficients;
+ const typename std::vector<Point<dim> > fourier_coefficients;
const std::vector<double> weights;
};
* coefficients in each space
* direction as argument.
*/
- FourierCosineSum (const std::vector<Point<dim> > &fourier_coefficients,
+ FourierCosineSum (const typename std::vector<Point<dim> > &fourier_coefficients,
const std::vector<double> &weights);
/**
* Stored Fourier coefficients
* and weights.
*/
- const std::vector<Point<dim> > fourier_coefficients;
+ const typename std::vector<Point<dim> > fourier_coefficients;
const std::vector<double> weights;
};
* the @p{coefficient} array
* minus one.
*/
- Polynomial (const std::vector<number> &coefficients);
+ Polynomial (const typename std::vector<number> &coefficients);
/**
* Default-Constructor.
* scheme for numerical stability
* of the evaluation.
*/
- void value (const number x,
- std::vector<number> &values) const;
+ void value (const number x,
+ typename std::vector<number> &values) const;
/**
* Degree of the polynomial. This
* passed down by derived
* classes.
*/
- std::vector<number> coefficients;
+ typename std::vector<number> coefficients;
};
* vectors in order to simplify
* programming multithread-safe.
*/
- static std::vector<const std::vector<number>*> coefficients;
+ static typename std::vector<const typename std::vector<number> *> coefficients;
/**
* Compute coefficients recursively.
* constructor of
* @ref{Polynomial}.
*/
- static const std::vector<number> &
+ static const typename std::vector<number> &
get_coefficients (const unsigned int k);
};
* and will be copied into the
* member variable @p{polynomials}.
*/
- template<class Pol>
- TensorProductPolynomials(const std::vector<Pol> &pols);
+ template <class Pol>
+ TensorProductPolynomials(const typename std::vector<Pol> &pols);
/**
* Computes the value and the
template <int dim>
template <class Pol>
TensorProductPolynomials<dim>::TensorProductPolynomials(
- const std::vector<Pol> &pols):
+ const typename std::vector<Pol> &pols):
polynomials (pols.begin(), pols.end()),
n_tensor_pols(power(pols.size(), dim)),
n_pols_to(dim+1)
template <typename ForwardIterator>
- typename std::vector<std::pair<ForwardIterator,ForwardIterator> >
+ typename std::vector<typename std::pair<ForwardIterator,ForwardIterator> >
split_range (const ForwardIterator &begin,
const ForwardIterator &end,
const unsigned int n_intervals)
template <int dim>
-void AutoDerivativeFunction<dim>::vector_gradient_list (const typename std::vector<Point<dim> > &points,
- typename std::vector<std::vector<Tensor<1,dim> > > &gradients) const
+void
+AutoDerivativeFunction<dim>::
+vector_gradient_list (const typename std::vector<Point<dim> > &points,
+ typename std::vector<typename std::vector<Tensor<1,dim> > > &gradients) const
{
Assert (gradients.size() == points.size(),
ExcDimensionMismatch(gradients.size(), points.size()));
template <int dim>
-AutoDerivativeFunction<dim>::DifferenceFormula
+typename AutoDerivativeFunction<dim>::DifferenceFormula
AutoDerivativeFunction<dim>::get_formula_of_order(const unsigned int ord)
{
switch (ord)
template <int dim>
void Function<dim>::vector_gradient_list (const typename std::vector<Point<dim> > &points,
- typename std::vector<std::vector<Tensor<1,dim> > > &gradients) const
+ typename std::vector<typename std::vector<Tensor<1,dim> > > &gradients) const
{
Assert (gradients.size() == points.size(),
ExcDimensionMismatch(gradients.size(), points.size()));
template <int dim>
FunctionDerivative<dim>::FunctionDerivative (const Function<dim>& f,
- const std::vector<Point<dim> >& dir,
+ const typename std::vector<Point<dim> >& dir,
const double h)
:
Function<dim> (f.n_components, f.get_time()),
template <int dim>
FourierSineSum<dim>::
- FourierSineSum (const std::vector<Point<dim> > &fourier_coefficients,
+ FourierSineSum (const typename std::vector<Point<dim> > &fourier_coefficients,
const std::vector<double> &weights)
:
Function<dim> (1),
template <int dim>
FourierCosineSum<dim>::
- FourierCosineSum (const std::vector<Point<dim> > &fourier_coefficients,
- const std::vector<double> &weights)
- :
- Function<dim> (1),
- fourier_coefficients (fourier_coefficients),
- weights (weights)
+ FourierCosineSum (const typename std::vector<Point<dim> > &fourier_coefficients,
+ const std::vector<double> &weights)
+ :
+ Function<dim> (1),
+ fourier_coefficients (fourier_coefficients),
+ weights (weights)
{
Assert (fourier_coefficients.size() > 0, ExcInvalidArraySize());
Assert (fourier_coefficients.size() == weights.size(),
// Reserve space for polynomials up to degree 19. Should be sufficient
// for the start.
template <typename number>
-std::vector<const std::vector<number>*>
+typename std::vector<const typename std::vector<number> *>
Legendre<number>::coefficients(20,
- static_cast<const std::vector<number>*>(0));
+ static_cast<const typename std::vector<number>*>(0));
// have a lock that guarantees that at most one thread is changing and
template <typename number>
-const std::vector<number> &
+const typename std::vector<number> &
Legendre<number>::get_coefficients (const unsigned int k)
{
// first make sure the coefficients
#include <base/polynomial.h>
template <typename number>
-Polynomial<number>::Polynomial (const std::vector<number> &a):
+Polynomial<number>::Polynomial (const typename std::vector<number> &a):
coefficients(a)
{}
template <typename number>
void
Polynomial<number>::value (const number x,
- std::vector<number> &values) const
+ typename std::vector<number> &values) const
{
Assert (coefficients.size() > 0, ExcVoidPolynomial());
Assert (values.size() > 0, ExcEmptyArray());
*/
template <int dim>
static void
- map_dofs_to_support_points (const Mapping<dim> &mapping,
- const DoFHandler<dim> &dof_handler,
- std::vector<Point<dim> > &support_points);
+ map_dofs_to_support_points (const Mapping<dim> &mapping,
+ const DoFHandler<dim> &dof_handler,
+ typename std::vector<Point<dim> > &support_points);
/**
* This is the opposite function
static void
map_support_points_to_dofs (const Mapping<dim> &mapping,
const DoFHandler<dim> &dof_handler,
- std::map<Point<dim>, unsigned int, Comp> &point_to_index_map);
+ typename std::map<Point<dim>, unsigned int, Comp> &point_to_index_map);
/**
* Exception
DoFTools::
map_support_points_to_dofs (const Mapping<dim> &mapping,
const DoFHandler<dim> &dof_handler,
- std::map<Point<dim>, unsigned int, Comp> &point_to_index_map)
+ typename std::map<Point<dim>, unsigned int, Comp> &point_to_index_map)
{
// let the checking of arguments be
// done by the function first
* entries in lower dimensions
* are missing.
*/
- std::vector<FEValues<dim>*> differences;
+ typename std::vector<FEValues<dim>*> differences;
};
/**
* See the class documentation
* for details on support points.
*/
- const std::vector<Point<dim> > & get_unit_support_points () const;
+ const typename std::vector<Point<dim> > &
+ get_unit_support_points () const;
/**
* Return whether a finite
* See the class documentation
* for details on support points.
*/
- const std::vector<Point<dim-1> > & get_unit_face_support_points () const;
+ const typename std::vector<Point<dim-1> > &
+ get_unit_face_support_points () const;
/**
* Return whether a finite
* support points. In that case,
* this field remains empty.
*/
- std::vector<Point<dim> > unit_support_points;
+ typename std::vector<Point<dim> > unit_support_points;
/**
* Same for the faces. See the
* what contributes a face
* support point.
*/
- std::vector<Point<dim-1> > unit_face_support_points;
+ typename std::vector<Point<dim-1> > unit_face_support_points;
/**
* Compute second derivatives by
* values for each quadrature
* point.
*/
- std::vector<std::vector<Tensor<1,dim> > > shape_gradients;
+ typename std::vector<std::vector<Tensor<1,dim> > > shape_gradients;
};
/**
* vector for each shape function, containing
* values for each quadrature point.
*/
- std::vector<std::vector<Tensor<1,dim> > > shape_gradients;
+ typename std::vector<typename std::vector<Tensor<1,dim> > > shape_gradients;
};
/**
* real element, rather than on the
* reference element.
*/
- std::vector<Point<dim> > quadrature_points;
+ typename std::vector<Point<dim> > quadrature_points;
/**
* List of outward normal vectors at the
* quadrature points. This field is filled
* in by the finite element class.
*/
- std::vector<Point<dim> > normal_vectors;
+ typename std::vector<Point<dim> > normal_vectors;
/**
* List of boundary forms at the
* quadrature points. This field is filled
* in by the finite element class.
*/
- std::vector<Tensor<1,dim> > boundary_forms;
+ typename std::vector<Tensor<1,dim> > boundary_forms;
/**
* Original update flags handed
* Return the list of outward normal
* vectors times quadrature weights.
*/
- const std::vector<Tensor<1,dim> > & get_boundary_forms () const;
+ const typename std::vector<Tensor<1,dim> > & get_boundary_forms () const;
/**
* Return the present
* can be given as additional
* argument.
*/
- virtual void transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
- const InternalDataBase& internal,
- const unsigned int src_offset) const = 0;
+ virtual void transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
+ const InternalDataBase &internal,
+ const unsigned int src_offset) const = 0;
/**
* Tranform a field of
* can be given as additional
* argument.
*/
- virtual void transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
- const InternalDataBase& internal,
- const unsigned int src_offset) const = 0;
+ virtual
+ void
+ transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
+ const InternalDataBase &internal,
+ const unsigned int src_offset) const = 0;
/**
* Tranform a field of covariant vectors.
* the first quadrature point can be
* given as additional argument.
*/
- virtual void transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
- const InternalDataBase& internal,
- const unsigned int src_offset) const = 0;
+ virtual
+ void
+ transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
+ const InternalDataBase &internal,
+ const unsigned int src_offset) const = 0;
/**
* Tranform a field of contravariant vectors.
* the first quadrature point can be
* given as additional argument.
*/
- virtual void transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
- const InternalDataBase& internal,
- const unsigned int src_offset) const = 0;
+ virtual
+ void
+ transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
+ const InternalDataBase &internal,
+ const unsigned int src_offset) const = 0;
/**
* Indicate fields to be updated in the
*/
virtual void
fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
- const Quadrature<dim>& quadrature,
- InternalDataBase& internal,
- std::vector<Point<dim> > &quadrature_points,
- std::vector<double> &JxW_values) const = 0;
+ const Quadrature<dim> &quadrature,
+ InternalDataBase &internal,
+ typename std::vector<Point<dim> > &quadrature_points,
+ std::vector<double> &JxW_values) const = 0;
/**
* Performs the same as @p{fill_fe_values}
*/
virtual void
fill_fe_face_values (const typename DoFHandler<dim>::cell_iterator &cell,
- const unsigned int face_no,
- const Quadrature<dim-1>& quadrature,
- InternalDataBase& internal,
- std::vector<Point<dim> > &quadrature_points,
- std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const = 0;
+ const unsigned int face_no,
+ const Quadrature<dim-1> &quadrature,
+ InternalDataBase &internal,
+ typename std::vector<Point<dim> > &quadrature_points,
+ std::vector<double> &JxW_values,
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const = 0;
/**
* See above.
*/
virtual void
fill_fe_subface_values (const typename DoFHandler<dim>::cell_iterator &cell,
- const unsigned int face_no,
- const unsigned int sub_no,
- const Quadrature<dim-1>& quadrature,
- InternalDataBase& internal,
- std::vector<Point<dim> > &quadrature_points,
- std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const = 0;
+ const unsigned int face_no,
+ const unsigned int sub_no,
+ const Quadrature<dim-1> &quadrature,
+ InternalDataBase &internal,
+ typename std::vector<Point<dim> > &quadrature_points,
+ std::vector<double> &JxW_values,
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const = 0;
/**
* Give class @p{FEValues} access
fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
const Quadrature<dim>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values) const ;
/**
const unsigned int face_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* Implementation of the interface in
const unsigned int sub_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* covariant transformation.
*/
template <typename tensor_>
- void covariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
+ void covariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* contravariant transformation.
*/
template <typename tensor_>
- void contravariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
+ void contravariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* points. Especially, all
* points of all faces.
*/
- std::vector<Point<dim> > quadrature_points;
+ typename std::vector<Point<dim> > quadrature_points;
/**
* Unit tangential vectors. Used
*
* Filled once.
*/
- std::vector<std::vector<Tensor<1,dim> > > unit_tangentials;
+ typename std::vector<typename std::vector<Tensor<1,dim> > > unit_tangentials;
/**
* Auxiliary vectors for internal use.
*/
- std::vector<std::vector<Tensor<1,dim> > > aux;
+ typename std::vector<typename std::vector<Tensor<1,dim> > > aux;
};
/**
const unsigned int face_no,
const unsigned int sub_no,
InternalData& data,
- std::vector<Point<dim> > &quadrature_points,
- std::vector<Point<dim> >& normal_vectors) const;
+ typename std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> >& normal_vectors) const;
private:
/**
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
const Quadrature<dim> &quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values) const ;
/**
const unsigned int face_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &exterior_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &exterior_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* Implementation of the interface in
const unsigned int sub_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &exterior_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &exterior_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* Storage for internal data of
* Filled (hardcoded) once in
* @p{get_face_data}.
*/
- std::vector<std::vector<Point<dim> > > unit_normals;
+ typename std::vector<typename std::vector<Point<dim> > > unit_normals;
/**
* Flag that is set by the
* derivatives.
*/
virtual void
- compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
+ compute_shapes_virtual (const typename std::vector<Point<dim> > &unit_points,
typename MappingQ1<dim>::InternalData &data) const;
/**
* points are appended.
*/
void apply_laplace_vector(const std::vector<std::vector<double> > &lvs,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* Computes the support points of
*/
virtual void compute_mapping_support_points(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* Computes all support points of
*/
void compute_support_points_laplace(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* Simple version of the
*/
void compute_support_points_simple(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* For @p{dim=2} and 3. Simple
*/
//TODO:[RH] (later) remove this function altogether?
void fill_quad_support_points_simple (const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* Needed by the
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+ transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
const Quadrature<dim>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values) const ;
/**
const unsigned int face_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* Implementation of the interface in
const unsigned int sub_no,
const Quadrature<dim-1>& quadrature,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const ;
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const ;
/**
* Implementation of the
* covariant transformation.
*/
template <typename tensor_>
- void covariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
+ void covariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
* contravariant transformation.
*/
template <typename tensor_>
- void contravariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
+ void contravariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const;
*
* Computed once.
*/
- std::vector<Tensor<1,dim> > shape_derivatives;
+ typename std::vector<Tensor<1,dim> > shape_derivatives;
/**
* Tensors of covariant
*
* Computed on each cell.
*/
- std::vector<Tensor<2,dim> > covariant;
+ typename std::vector<Tensor<2,dim> > covariant;
/**
* Tensors of covariant
*
* Computed on each cell.
*/
- std::vector<Tensor<2,dim> > contravariant;
+ typename std::vector<Tensor<2,dim> > contravariant;
/**
* Unit tangential vectors. Used
*
* Filled once.
*/
- std::vector<std::vector<Tensor<1,dim> > > unit_tangentials;
+ typename std::vector<typename std::vector<Tensor<1,dim> > > unit_tangentials;
/**
* Auxuliary vectors for internal use.
*/
- std::vector<std::vector<Tensor<1,dim> > > aux;
+ typename std::vector<typename std::vector<Tensor<1,dim> > > aux;
/**
* Stores the support points of
* the mapping shape functions on
* the @p{cell_of_current_support_points}.
*/
- std::vector<Point<dim> > mapping_support_points;
+ typename std::vector<Point<dim> > mapping_support_points;
/**
* Stores the cell of which the
* @p{data.is_mapping_q1_data}
* equals @p{true} or @p{false}.
*/
- void compute_shapes (const std::vector<Point<dim> > &unit_points,
+ void compute_shapes (const typename std::vector<Point<dim> > &unit_points,
InternalData &data) const;
/**
* and shape values are computed.
*/
void compute_data (const UpdateFlags flags,
- const Quadrature<dim>& quadrature,
+ const Quadrature<dim> &quadrature,
const unsigned int n_orig_q_points,
- InternalData& data) const;
+ InternalData &data) const;
/**
* Do the computations for the
const unsigned int npts,
const unsigned int offset,
InternalData &data,
- std::vector<Point<dim> > &quadrature_points) const;
+ typename std::vector<Point<dim> > &quadrature_points) const;
/**
* Do the computation for the
const unsigned int offset,
const std::vector<double> &weights,
InternalData &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_form,
- std::vector<Point<dim> > &normal_vectors) const;
+ typename std::vector<Tensor<1,dim> > &boundary_form,
+ typename std::vector<Point<dim> > &normal_vectors) const;
/**
* Compute shape values and/or
* derivatives.
*/
- virtual void compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
+ virtual void compute_shapes_virtual (const typename std::vector<Point<dim> > &unit_points,
InternalData &data) const;
/**
*/
virtual void compute_mapping_support_points(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
/**
* Number of shape functions. Is
*/
virtual void compute_mapping_support_points(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const;
+ typename std::vector<Point<dim> > &a) const;
};
*/
template <int dim>
static void laplace_transformation (Triangulation<dim> &tria,
- const std::map<unsigned int,Point<dim> > &new_points);
+ const typename std::map<unsigned int,Point<dim> > &new_points);
/**
* Declaration of same function
* function
* @ref{get_used_vertices}.
*/
- const std::vector<Point<dim> > &
+ const typename std::vector<Point<dim> > &
get_vertices () const;
/**
template<int celldim, int dim>
bool TriaObjectAccessor<celldim,dim>::has_children () const
{
- Assert (state() == valid, ExcDereferenceInvalidObject());
+ Assert (state() == valid,
+ typename TriaAccessor<dim>::ExcDereferenceInvalidObject());
return (tria->levels[present_level]->hexes.children[present_index] != -1);
};
void
StraightBoundary<1>::
get_normals_at_vertices (const Triangulation<1>::face_iterator &,
- FaceVertexNormals &) const;
+ Boundary<1>::FaceVertexNormals &) const;
template <>
void
StraightBoundary<2>::
void
HyperBallBoundary<1>::
get_normals_at_vertices (const Triangulation<1>::face_iterator &,
- FaceVertexNormals &) const;
+ Boundary<1>::FaceVertexNormals &) const;
template <>
Point<1>
HalfHyperBallBoundary<1>::
* Abbreviate the somewhat lengthy
* name for the @p{Patch} class.
*/
- typedef DataOutBase::Patch<patch_dim,patch_space_dim> Patch;
+ typedef typename DataOutBase::Patch<patch_dim,patch_space_dim> Patch;
/**
* Pointer to the dof handler object.
* of all cells that'll be coarsened
* will be stored in this vector.
*/
- typename std::vector<std::vector<Vector<number> > > dof_values_on_cell;
+ typename std::vector<typename std::vector<Vector<number> > > dof_values_on_cell;
};
* @ref{TimeStepBase_Tria_Flags}
* namespace into local scope.
*/
- typedef TimeStepBase_Tria_Flags::Flags<dim> Flags;
- typedef TimeStepBase_Tria_Flags::RefinementFlags<dim> RefinementFlags;
- typedef TimeStepBase_Tria_Flags::RefinementData<dim> RefinementData;
+ typedef typename TimeStepBase_Tria_Flags::Flags<dim> Flags;
+ typedef typename TimeStepBase_Tria_Flags::RefinementFlags<dim> RefinementFlags;
+ typedef typename TimeStepBase_Tria_Flags::RefinementData<dim> RefinementData;
/**
void
DoFTools::map_dofs_to_support_points (const Mapping<dim> &mapping,
const DoFHandler<dim> &dof_handler,
- std::vector<Point<dim> > &support_points)
+ typename std::vector<Point<dim> > &support_points)
{
const unsigned int dofs_per_cell = dof_handler.get_fe().dofs_per_cell;
template <int dim>
-const std::vector<Point<dim> > &
+const typename std::vector<Point<dim> > &
FiniteElementBase<dim>::get_unit_support_points () const
{
// a finite element may define
template <int dim>
-const std::vector<Point<dim-1> > &
+const typename std::vector<Point<dim-1> > &
FiniteElementBase<dim>::get_unit_face_support_points () const
{
// a finite element may define
template <int dim>
-const std::vector<Point<dim> > &
+const typename std::vector<Point<dim> > &
FEFaceValuesBase<dim>::get_normal_vectors () const
{
Assert (update_flags & update_normal_vectors,
template <int dim>
-const std::vector<Tensor<1,dim> > &
+const typename std::vector<Tensor<1,dim> > &
FEFaceValuesBase<dim>::get_boundary_forms () const
{
Assert (update_flags & update_boundary_forms,
const unsigned int face_no,
const unsigned int sub_no,
InternalData &data,
- std::vector<Point<dim> > &quadrature_points,
- std::vector<Point<dim> > &normal_vectors) const
+ typename std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &normal_vectors) const
{
UpdateFlags update_flags(data.current_update_flags());
MappingCartesian<dim>::fill_fe_values (const typename DoFHandler<dim>::cell_iterator& cell,
const Quadrature<dim>& q,
typename Mapping<dim>::InternalDataBase& mapping_data,
- std::vector<Point<dim> >& quadrature_points,
+ typename std::vector<Point<dim> >& quadrature_points,
std::vector<double>& JxW_values) const
{
// convert data object to internal
const unsigned int face_no,
const Quadrature<dim-1> &q,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_forms,
- std::vector<Point<dim> > &normal_vectors) const
+ typename std::vector<Tensor<1,dim> > &boundary_forms,
+ typename std::vector<Point<dim> > &normal_vectors) const
{
// convert data object to internal
// data for this class. fails with
const unsigned int sub_no,
const Quadrature<dim-1> &q,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &boundary_forms,
- std::vector<Point<dim> > &normal_vectors) const
+ typename std::vector<Tensor<1,dim> > &boundary_forms,
+ typename std::vector<Point<dim> > &normal_vectors) const
{
// convert data object to internal
// data for this class. fails with
template <int dim>
void
-MappingCartesian<dim>::transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+MappingCartesian<dim>::transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingCartesian<dim>::transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+MappingCartesian<dim>::transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingCartesian<dim>::transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+MappingCartesian<dim>::transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingCartesian<dim>::transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+MappingCartesian<dim>::transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <typename tensor_>
inline
void
-MappingCartesian<dim>::contravariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
- const typename Mapping<dim>::InternalDataBase &mapping_data,
- const unsigned int src_offset) const
+MappingCartesian<dim>::
+contravariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
+ const typename Mapping<dim>::InternalDataBase &mapping_data,
+ const unsigned int src_offset) const
{
Assert(tensor_::dimension==dim && tensor_::rank==1, ExcInvalidData());
template <typename tensor_>
inline
void
-MappingCartesian<dim>::covariant_transformation (std::vector<tensor_> &dst,
- const std::vector<tensor_> &src,
- const typename Mapping<dim>::InternalDataBase &mapping_data,
- const unsigned int src_offset) const
+MappingCartesian<dim>::
+covariant_transformation (typename std::vector<tensor_> &dst,
+ const typename std::vector<tensor_> &src,
+ const typename Mapping<dim>::InternalDataBase &mapping_data,
+ const unsigned int src_offset) const
{
Assert(tensor_::dimension==dim && tensor_::rank==1, ExcInvalidData());
template<int dim>
void
-MappingQ<dim>::compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
+MappingQ<dim>::compute_shapes_virtual (const typename std::vector<Point<dim> > &unit_points,
typename MappingQ1<dim>::InternalData &data) const
{
const unsigned int n_points=unit_points.size();
MappingQ<dim>::fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
const Quadrature<dim> &q,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values) const
{
// convert data object to internal
const unsigned int face_no,
const Quadrature<dim-1> &q,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &exterior_forms,
- std::vector<Point<dim> > &normal_vectors) const
+ typename std::vector<Tensor<1,dim> > &exterior_forms,
+ typename std::vector<Point<dim> > &normal_vectors) const
{
// convert data object to internal
// data for this class. fails with
const unsigned int sub_no,
const Quadrature<dim-1> &q,
typename Mapping<dim>::InternalDataBase &mapping_data,
- std::vector<Point<dim> > &quadrature_points,
+ typename std::vector<Point<dim> > &quadrature_points,
std::vector<double> &JxW_values,
- std::vector<Tensor<1,dim> > &exterior_forms,
- std::vector<Point<dim> > &normal_vectors) const
+ typename std::vector<Tensor<1,dim> > &exterior_forms,
+ typename std::vector<Point<dim> > &normal_vectors) const
{
// convert data object to internal
// data for this class. fails with
template <int dim>
void
MappingQ<dim>::apply_laplace_vector(const std::vector<std::vector<double> > &lvs,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
Assert(lvs.size()!=0, ExcLaplaceVectorNotSet(degree));
const unsigned int n_inner_apply=lvs.size();
void
MappingQ<dim>::compute_mapping_support_points(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
// if this is a cell for which we
// want to compute the full
template <int dim>
void
MappingQ<dim>::compute_support_points_laplace(const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
// in any case, we need the
// vertices first
template <int dim>
void
MappingQ<dim>::compute_support_points_simple(const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
Assert(a.size()==0, ExcInternalError());
// the vertices first
template <int dim>
void
MappingQ<dim>::add_line_support_points (const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
static const StraightBoundary<dim> straight_boundary;
// if we only need the midpoint,
template<int dim>
void
MappingQ<dim>::add_quad_support_points(const typename Triangulation<dim>::cell_iterator &,
- std::vector<Point<dim> > &) const
+ typename std::vector<Point<dim> > &) const
{
Assert (dim > 2, ExcImpossibleInDim(dim));
}
template <int dim>
void
MappingQ<dim>::fill_quad_support_points_simple (const typename Triangulation<dim>::cell_iterator &,
- std::vector<Point<dim> > &) const
+ typename std::vector<Point<dim> > &) const
{}
template <int dim>
void
-MappingQ<dim>::transform_covariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+MappingQ<dim>::transform_covariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingQ<dim>::transform_covariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+MappingQ<dim>::transform_covariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingQ<dim>::transform_contravariant (std::vector<Tensor<1,dim> > &dst,
- const std::vector<Tensor<1,dim> > &src,
+MappingQ<dim>::transform_contravariant (typename std::vector<Tensor<1,dim> > &dst,
+ const typename std::vector<Tensor<1,dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
template <int dim>
void
-MappingQ<dim>::transform_contravariant (std::vector<Point<dim> > &dst,
- const std::vector<Point<dim> > &src,
+MappingQ<dim>::transform_contravariant (typename std::vector<Point<dim> > &dst,
+ const typename std::vector<Point<dim> > &src,
const typename Mapping<dim>::InternalDataBase &mapping_data,
const unsigned int src_offset) const
{
void
MappingQ1Eulerian<dim>::compute_mapping_support_points(
const typename Triangulation<dim>::cell_iterator &cell,
- std::vector<Point<dim> > &a) const
+ typename std::vector<Point<dim> > &a) const
{
// The assertions can not be in the
template <int dim>
void GridGenerator::laplace_transformation (Triangulation<dim> &tria,
- const std::map<unsigned int,Point<dim> > &new_points)
+ const typename std::map<unsigned int,Point<dim> > &new_points)
{
// first provide everything that is
// needed for solving a Laplace
// defined by the order of vertices
// in the cell object
Face new_faces[GeometryInfo<dim>::faces_per_cell]
- = { { {vertices[0], vertices[1]} },
- { {vertices[1], vertices[2]} },
- { {vertices[3], vertices[2]} },
- { {vertices[0], vertices[3]} } };
+ = { { { vertices[0], vertices[1] } },
+ { { vertices[1], vertices[2] } },
+ { { vertices[3], vertices[2] } },
+ { { vertices[0], vertices[3] } } };
// then insert them into the global
// list and store iterators to
template <int dim>
-const std::vector<Point<dim> > &
+const typename std::vector<Point<dim> > &
Triangulation<dim>::get_vertices () const
{
return vertices;
template <>
unsigned char CellAccessor<1>::material_id () const
{
- Assert (used(), ExcCellNotUsed());
+ Assert (used(), TriaAccessor<1>::ExcCellNotUsed());
return tria->levels[present_level]->lines.material_id[present_index];
};
template <>
void CellAccessor<1>::set_material_id (const unsigned char mat_id) const
{
- Assert (used(), ExcCellNotUsed());
+ Assert (used(), TriaAccessor<1>::ExcCellNotUsed());
tria->levels[present_level]->lines.material_id[present_index]
= mat_id;
};
template <>
unsigned char CellAccessor<3>::material_id () const
{
- Assert (used(), ExcCellNotUsed());
+ Assert (used(), TriaAccessor<3>::ExcCellNotUsed());
return tria->levels[present_level]->hexes.material_id[present_index];
};
template <>
void CellAccessor<3>::set_material_id (const unsigned char mat_id) const
{
- Assert (used(), ExcCellNotUsed());
+ Assert (used(), TriaAccessor<3>::ExcCellNotUsed());
tria->levels[present_level]->hexes.material_id[present_index]
= mat_id;
};
void
Boundary<dim>::
get_intermediate_points_on_line (const typename Triangulation<dim>::line_iterator &,
- std::vector<Point<dim> > &) const
+ typename std::vector<Point<dim> > &) const
{
Assert (false, ExcPureVirtualFunctionCalled());
};
void
Boundary<dim>::
get_intermediate_points_on_quad (const typename Triangulation<dim>::quad_iterator &,
- std::vector<Point<dim> > &) const
+ typename std::vector<Point<dim> > &) const
{
Assert (false, ExcPureVirtualFunctionCalled());
};
void
StraightBoundary<1>::
get_normals_at_vertices (const Triangulation<1>::face_iterator &,
- FaceVertexNormals &) const
+ Boundary<1>::FaceVertexNormals &) const
{
Assert (false, Boundary<1>::ExcFunctionNotUseful(1));
};
void
HyperBallBoundary<1>::
get_normals_at_vertices (const Triangulation<1>::face_iterator &,
- FaceVertexNormals &) const
+ Boundary<1>::FaceVertexNormals &) const
{
Assert (false, Boundary<1>::ExcFunctionNotUseful(1));
};
// (there are more coming below then
// also)
if (refinement_flags.adapt_grids)
- adapt_grids (*previous_tria, *tria);
+ adapt_grids<dim> (*previous_tria, *tria);
// perform flagging of cells
// needed to regularize the
// strange things may happen
if (refinement_flags.mirror_flags_to_previous_grid)
{
- adapt_grids (*previous_tria, *tria);
+ adapt_grids<dim> (*previous_tria, *tria);
typename Triangulation<dim>::cell_iterator old_cell, new_cell, endc;
old_cell = previous_tria->begin(0);
// cells to avoid the previous grid
// to have cells refined twice more
// than the present one and vica versa.
- adapt_grids (*previous_tria, *tria);
+ adapt_grids<dim> (*previous_tria, *tria);
};
};
template <int dim>
-TimeStepBase_Tria_Flags::RefinementFlags<dim>::CorrectionRelaxations
+typename TimeStepBase_Tria_Flags::RefinementFlags<dim>::CorrectionRelaxations
TimeStepBase_Tria_Flags::RefinementFlags<dim>::default_correction_relaxations
(1, // one element, denoting the first and all subsequent sweeps
std::vector<std::pair<unsigned int,double> >(1, // one element, denoting the upper bound
/**
* Array of sub-matrices.
*/
- typename std::vector<std::vector<SmartPointer<SparseMatrix<number> > > > sub_objects;
+ typename std::vector<typename std::vector<SmartPointer<SparseMatrix<number> > > > sub_objects;
};
/**
* Array of sparsity patterns.
*/
- std::vector<std::vector<SmartPointer<SparsityPatternBase> > > sub_objects;
+ typename std::vector<typename std::vector<SmartPointer<SparsityPatternBase> > > sub_objects;
/**
* Object storing and managing
inline
void
BlockSparsityPatternBase<SparsityPatternBase>::add (const unsigned int i,
- const unsigned int j)
+ const unsigned int j)
{
// if you get an error here, are
// you sure you called
* the value to which it shall be
* fixed.
*/
- std::vector<IndexValuePair> constraints;
+ typename std::vector<IndexValuePair> constraints;
/**
* Vector to be used as temporary
* matrix types.
*/
void get_column_entries (const unsigned int index,
- std::vector<IndexValuePair> &column_entries,
+ typename std::vector<IndexValuePair> &column_entries,
const bool matrix_is_symmetric) const;
};
*/
template <typename value>
unsigned int
- get_column_index_from_iterator (const std::pair<unsigned int, value> &i);
+ get_column_index_from_iterator (const typename std::pair<unsigned int, value> &i);
/**
* Likewise, but sometimes needed
*/
template <typename value>
unsigned int
- get_column_index_from_iterator (const std::pair<const unsigned int, value> &i);
+ get_column_index_from_iterator (const typename std::pair<const unsigned int, value> &i);
/**
* Make all sparse matrices
template <typename value>
inline
unsigned int
-SparsityPattern::get_column_index_from_iterator (const std::pair<unsigned int, value> &i)
+SparsityPattern::get_column_index_from_iterator (const typename std::pair<unsigned int, value> &i)
{
return i.first;
};
template <typename value>
inline
unsigned int
-SparsityPattern::get_column_index_from_iterator (const std::pair<const unsigned int, value> &i)
+SparsityPattern::get_column_index_from_iterator (const typename std::pair<const unsigned int, value> &i)
{
return i.first;
};