Skip to content
This repository
Browse code

Minor refactors for Space copying in Adaptivity.

  • Loading branch information...
commit 16b90f638deb2d38a1028210ba3565425635c7de 1 parent 27e0e64
l-korous authored February 27, 2014
1  hermes2d/src/mesh/mesh.cpp
@@ -1273,7 +1273,6 @@ namespace Hermes
1273 1273
       this->element_markers_conversion.conversion_table.clear();
1274 1274
       this->element_markers_conversion.conversion_table_inverse.clear();
1275 1275
       this->refinements.clear();
1276  
-      this->seq = -1;
1277 1276
     }
1278 1277
 
1279 1278
     Element* Mesh::element_on_physical_coordinates(double x, double y)
8  hermes2d/src/space/space.cpp
@@ -252,13 +252,7 @@ namespace Hermes
252 252
 
253 253
       this->shapeset = space->shapeset->clone();
254 254
 
255  
-      if (new_mesh->get_seq() != space->get_mesh()->get_seq())
256  
-      {
257  
-        new_mesh->copy(space->get_mesh());
258  
-        this->mesh = new_mesh;
259  
-      }
260  
-      else
261  
-        this->mesh = space->get_mesh();
  255
+      this->mesh = new_mesh;
262 256
 
263 257
       this->resize_tables();
264 258
 

0 notes on commit 16b90f6

Please sign in to comment.
Something went wrong with that request. Please try again.