]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add memory consmuption info to meshworker classes
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Sep 2010 16:57:49 +0000 (16:57 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Sep 2010 16:57:49 +0000 (16:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@22090 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/mesh_worker_info.h
deal.II/deal.II/include/numerics/mesh_worker_info.templates.h

index 551016033ff240491689322c04c76f8d714a535f..197f94a20b8d3d36f5376cf8b0bc15f0efaffa3d 100644 (file)
@@ -1279,6 +1279,8 @@ namespace MeshWorker
             const Mapping<dim,sdim>& mapping,
             const BlockInfo* block_info)
   {
+    initialize_update_flags();
+    
     cell.template initialize<FEValues<dim,sdim> >(el, mapping, cell_quadrature,
                                                  cell_flags, block_info);
     boundary.template initialize<FEFaceValues<dim,sdim> >(el, mapping, boundary_quadrature,
@@ -1300,6 +1302,8 @@ namespace MeshWorker
             const Mapping<1,1>& mapping,
             const BlockInfo* block_info)
   {
+    initialize_update_flags();
+    
     const int dim = 1;
     const int sdim = 1;
 
@@ -1317,9 +1321,11 @@ namespace MeshWorker
             const Mapping<1,2>& mapping,
             const BlockInfo* block_info)
   {
+    initialize_update_flags();
+    
     const int dim = 1;
     const int sdim = 2;
-
+    
     cell.initialize<FEValues<dim,sdim> >(el, mapping, cell_quadrature,
                                         cell_flags, block_info);
   }
index 068db9716484dbec0d37776ca962ae0648b4ad18..2a4750eaebbb11738bc7cf4bf812424ea148864e 100644 (file)
@@ -199,10 +199,10 @@ namespace MeshWorker
   void
   IntegrationInfoBox<dim,sdim>::initialize_update_flags ()
   {
-    cell_flags = update_JxW_values;
-    boundary_flags = UpdateFlags(update_JxW_values | update_normal_vectors);
-    face_flags = boundary_flags;
-    neighbor_flags = update_default;
+    cell_flags |= update_JxW_values;
+    boundary_flags |= UpdateFlags(update_JxW_values | update_normal_vectors);
+    face_flags |= boundary_flags;
+    neighbor_flags |= update_default;
 
     if (cell_selector.has_values() != 0) cell_flags |= update_values;
     if (cell_selector.has_gradients() != 0) cell_flags |= update_gradients;

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.