[cig-commits] [commit] master: Performance improvements. (a6bcc11)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Sun Jun 22 04:23:03 PDT 2014
Repository : https://github.com/geodynamics/aspect
On branch : master
Link : https://github.com/geodynamics/aspect/compare/48f5db061ecf9e78a0c7ef83891ac7743617afcd...c44f6360403e235564e469966bfb840fb21bc6f8
>---------------------------------------------------------------
commit a6bcc11c74ea88a54265466ee7ac572c56bc7e52
Author: Rene Gassmoeller <R.Gassmoeller at mailbox.org>
Date: Fri Jun 20 22:00:04 2014 +0200
Performance improvements.
>---------------------------------------------------------------
a6bcc11c74ea88a54265466ee7ac572c56bc7e52
source/mesh_refinement/minimum_refinement_function.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/source/mesh_refinement/minimum_refinement_function.cc b/source/mesh_refinement/minimum_refinement_function.cc
index 03aa538..a9f902f 100644
--- a/source/mesh_refinement/minimum_refinement_function.cc
+++ b/source/mesh_refinement/minimum_refinement_function.cc
@@ -45,7 +45,7 @@ namespace aspect
for ( unsigned int v = 0; v < GeometryInfo<dim>::vertices_per_cell; ++v)
{
- const Point<dim> vertex = cell->vertex(v);
+ const Point<dim> &vertex = cell->vertex(v);
// TODO: This should be an input parameter for the user to decide
// whether to use depth or coordinates
@@ -55,7 +55,10 @@ namespace aspect
if (cell->level() <= rint(min_refinement_level.value(point)))
clear_coarsen = true;
if (cell->level() < rint(min_refinement_level.value(point)))
- refine = true;
+ {
+ refine = true;
+ break;
+ }
}
if (clear_coarsen)
More information about the CIG-COMMITS
mailing list