]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modified grid_tools_cache to fix flag_update issues with some functions
authorManu Jayadharan <manu.jayadharan@gmail.com>
Thu, 8 Aug 2019 20:54:11 +0000 (16:54 -0400)
committerManu Jayadharan <manu.jayadharan@gmail.com>
Fri, 9 Aug 2019 22:33:32 +0000 (18:33 -0400)
doc/news/changes/minor/20190808MJayadharan [new file with mode: 0644]
source/grid/grid_tools_cache.cc

diff --git a/doc/news/changes/minor/20190808MJayadharan b/doc/news/changes/minor/20190808MJayadharan
new file mode 100644 (file)
index 0000000..8687a74
--- /dev/null
@@ -0,0 +1,3 @@
+Debug: Fixed two functions in GridTools::Cache class (in source/grid/grid_tools_cache.cc), namely get_used_vertices_rtree() and get_cell_bounding_boxes_rtree where the update flag were not cleared. Fixed that by adding a line to both functions at the end of if loop checking the flag.
+<br>
+(Manu Jayadharan, 2019/08/08)
index ab080da397ed5c13bf560f5fa27bde0f04849589..dc945de8c697eed773b47ce299b967ed0e1cda3f 100644 (file)
@@ -114,6 +114,7 @@ namespace GridTools
         for (const auto &it : used_vertices)
           vertices[i++] = std::make_pair(it.second, it.first);
         used_vertices_rtree = pack_rtree(vertices);
+        update_flags = update_flags & ~update_used_vertices_rtree;
       }
     return used_vertices_rtree;
   }
@@ -137,6 +138,7 @@ namespace GridTools
           boxes[i++] = std::make_pair(mapping->get_bounding_box(cell), cell);
 
         cell_bounding_boxes_rtree = pack_rtree(boxes);
+        update_flags = update_flags & ~update_cell_bounding_boxes_rtree;
       }
     return cell_bounding_boxes_rtree;
   }

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.