]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make a number of frequently used functions inline.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jul 2004 14:21:33 +0000 (14:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jul 2004 14:21:33 +0000 (14:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@9529 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h
deal.II/deal.II/source/fe/fe_values.cc

index 517cddb842145e74699244e4219a01278d6401f8..f93a216e03251f7fa45856b913409dc3639db771 100644 (file)
@@ -2381,6 +2381,55 @@ FEValuesBase<dim>::get_cell () const
   return *present_cell;
 }
 
+
+template <int dim>
+inline
+const std::vector<Point<dim> > &
+FEValuesBase<dim>::get_quadrature_points () const
+{
+  Assert (this->update_flags & update_q_points, ExcAccessToUninitializedField());
+  return this->quadrature_points;
+}
+
+
+
+template <int dim>
+inline
+const std::vector<double> &
+FEValuesBase<dim>::get_JxW_values () const
+{
+  Assert (this->update_flags & update_JxW_values, ExcAccessToUninitializedField());
+  return this->JxW_values;
+}
+
+
+
+template <int dim>
+inline
+const Point<dim> &
+FEValuesBase<dim>::quadrature_point (const unsigned int i) const
+{
+  Assert (this->update_flags & update_q_points, ExcAccessToUninitializedField());
+  Assert (i<this->quadrature_points.size(), ExcIndexRange(i, 0, this->quadrature_points.size()));
+  
+  return this->quadrature_points[i];
+}
+
+
+
+
+template <int dim>
+inline
+double
+FEValuesBase<dim>::JxW (const unsigned int i) const
+{
+  Assert (this->update_flags & update_JxW_values, ExcAccessToUninitializedField());
+  Assert (i<this->JxW_values.size(), ExcIndexRange(i, 0, this->JxW_values.size()));
+  
+  return this->JxW_values[i];
+}
+
+
 /*------------------------ Inline functions: FEValues ----------------------------*/
 
 
index 284a4b5bc2ccbfdeee9bea6a9f267deb8284edc9..2c6d8f27c7f82a011fa232ea4831006d2b9b1669 100644 (file)
@@ -558,26 +558,6 @@ void FEValuesBase<dim>::get_function_values (
 
 
 
-template <int dim>
-const std::vector<Point<dim> > &
-FEValuesBase<dim>::get_quadrature_points () const
-{
-  Assert (this->update_flags & update_q_points, ExcAccessToUninitializedField());
-  return this->quadrature_points;
-}
-
-
-
-template <int dim>
-const std::vector<double> &
-FEValuesBase<dim>::get_JxW_values () const
-{
-  Assert (this->update_flags & update_JxW_values, ExcAccessToUninitializedField());
-  return this->JxW_values;
-}
-
-
-
 template <int dim>
 template <class InputVector>
 void
@@ -761,30 +741,6 @@ get_function_2nd_derivatives (const InputVector                         &fe_func
 
 
 
-template <int dim>
-const Point<dim> &
-FEValuesBase<dim>::quadrature_point (const unsigned int i) const
-{
-  Assert (this->update_flags & update_q_points, ExcAccessToUninitializedField());
-  Assert (i<this->quadrature_points.size(), ExcIndexRange(i, 0, this->quadrature_points.size()));
-  
-  return this->quadrature_points[i];
-}
-
-
-
-
-template <int dim>
-double FEValuesBase<dim>::JxW (const unsigned int i) const
-{
-  Assert (this->update_flags & update_JxW_values, ExcAccessToUninitializedField());
-  Assert (i<this->JxW_values.size(), ExcIndexRange(i, 0, this->JxW_values.size()));
-  
-  return this->JxW_values[i];
-}
-
-
-
 template <int dim>
 unsigned int
 FEValuesBase<dim>::memory_consumption () const

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.