[cig-commits] r1341 - in trunk/aspect: include/aspect source/simulator

dannberg at dealii.org dannberg at dealii.org
Tue Oct 30 06:21:50 PDT 2012


Author: dannberg
Date: 2012-10-30 07:21:50 -0600 (Tue, 30 Oct 2012)
New Revision: 1341

Modified:
   trunk/aspect/include/aspect/simulator.h
   trunk/aspect/source/simulator/simulator_access.cc
Log:
Introduce a function in simulator_access that returns a reference to the fixed temperature boundary indicators used in this model

Modified: trunk/aspect/include/aspect/simulator.h
===================================================================
--- trunk/aspect/include/aspect/simulator.h	2012-10-26 20:20:29 UTC (rev 1340)
+++ trunk/aspect/include/aspect/simulator.h	2012-10-30 13:21:50 UTC (rev 1341)
@@ -363,6 +363,14 @@
       get_boundary_temperature () const;
 
       /**
+       * Return a set of boudary indicators that describes which of the boundaries
+       * have a fixed temperature.
+       */
+      const std::set<types::boundary_id_t>&
+      get_fixed_temperature_boundary_indicators () const;
+
+
+      /**
        * Copy the values of the compositional fields at the quadrature point
        * q given as input parameter to the output vector
        * composition_values_at_q_point.

Modified: trunk/aspect/source/simulator/simulator_access.cc
===================================================================
--- trunk/aspect/source/simulator/simulator_access.cc	2012-10-26 20:20:29 UTC (rev 1340)
+++ trunk/aspect/source/simulator/simulator_access.cc	2012-10-30 13:21:50 UTC (rev 1341)
@@ -265,7 +265,14 @@
   }
 
 
+  template <int dim>
+  const std::set<types::boundary_id_t>&
+  SimulatorAccess<dim>::get_fixed_temperature_boundary_indicators () const
+  {
+    return simulator->parameters.fixed_temperature_boundary_indicators;
+  }
 
+
   template <int dim>
   const GeometryModel::Interface<dim> &
   SimulatorAccess<dim>::get_geometry_model () const



More information about the CIG-COMMITS mailing list