[cig-commits] [commit] master: clean up VectorFunctionFromVelocityFunctionObject (6e6a1c6)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon May 19 20:14:07 PDT 2014


Repository : https://github.com/geodynamics/aspect

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/76d4275352ef2cae5de9a073acd1c03a92c2670c...4f3d06fd1f3754419813db37ec9ef7f0f6f3cb15

>---------------------------------------------------------------

commit 6e6a1c6341b10cb64dcfc1e69bffd2de0b127c72
Author: Timo Heister <timo.heister at gmail.com>
Date:   Mon May 19 12:43:41 2014 -0400

    clean up VectorFunctionFromVelocityFunctionObject


>---------------------------------------------------------------

6e6a1c6341b10cb64dcfc1e69bffd2de0b127c72
 source/simulator/core.cc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/source/simulator/core.cc b/source/simulator/core.cc
index 37420bf..09ede6d 100644
--- a/source/simulator/core.cc
+++ b/source/simulator/core.cc
@@ -361,13 +361,11 @@ namespace aspect
          * convert this into an object that matches the Function@<dim@>
          * interface.
          *
-        * @param n_comp_fields The number of compositional fields used in
-        *        this vector-valued problem. Needed to determine
-        *        the total size of the output vectors.
+        * @param total number of components of the finite element system.
          * @param function_object The scalar function that will form one component
          *     of the resulting Function object.
          */
-        VectorFunctionFromVelocityFunctionObject (const unsigned int n_comp_fields,
+        VectorFunctionFromVelocityFunctionObject (const unsigned int n_components,
                                                   const std_cxx1x::function<Tensor<1,dim> (const Point<dim> &)> &function_object);
 
         /**
@@ -404,10 +402,10 @@ namespace aspect
     template <int dim>
     VectorFunctionFromVelocityFunctionObject<dim>::
     VectorFunctionFromVelocityFunctionObject
-    (const unsigned int n_comp_fields,
+    (const unsigned int n_components,
      const std_cxx1x::function<Tensor<1,dim> (const Point<dim> &)> &function_object)
       :
-      Function<dim>(dim+2+n_comp_fields),
+      Function<dim>(n_components),
       function_object (function_object)
     {
     }
@@ -504,7 +502,7 @@ namespace aspect
         {
           p->second->set_current_time (time);
           VectorFunctionFromVelocityFunctionObject<dim> vel
-          (parameters.n_compositional_fields,
+          (introspection.n_components,
            std_cxx1x::bind (&VelocityBoundaryConditions::Interface<dim>::boundary_velocity,
                             p->second,
                             std_cxx1x::_1));



More information about the CIG-COMMITS mailing list