[cig-commits] [commit] master: Bugfix. (fa4c2bf)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Jun 20 10:37:33 PDT 2014


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

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/646b028803359614a76a003795e6d97f0a5a0603...c917ad0d725ab4b6b3c501aa1866e34b8aaacc7d

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

commit fa4c2bfce342360424b584b8b3574e97151d5a4d
Author: Rene Gassmoeller <R.Gassmoeller at mailbox.org>
Date:   Fri Jun 20 19:21:38 2014 +0200

    Bugfix.


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

fa4c2bfce342360424b584b8b3574e97151d5a4d
 source/material_model/steinberger.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/material_model/steinberger.cc b/source/material_model/steinberger.cc
index 41a18ca..088d99c 100644
--- a/source/material_model/steinberger.cc
+++ b/source/material_model/steinberger.cc
@@ -454,7 +454,7 @@ namespace aspect
       double delta_temperature;
       if (use_lateral_average_temperature)
         {
-          const unsigned int idx = static_cast<unsigned int>(avg_temp.size() * depth / this->get_geometry_model().maximal_depth());
+          const unsigned int idx = static_cast<unsigned int>((avg_temp.size()-1) * depth / this->get_geometry_model().maximal_depth());
           delta_temperature = temperature-avg_temp[idx];
         }
       else



More information about the CIG-COMMITS mailing list