Author: andrico
Date: Thu Jun 11 13:07:20 2015
New Revision: 5033

URL: http://svn.gna.org/viewcvs/getfem?rev=5033&view=rev
Log:
correction for mesh_region::subtract

Modified:
    trunk/getfem/src/getfem_mesh_region.cc

Modified: trunk/getfem/src/getfem_mesh_region.cc
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem_mesh_region.cc?rev=5033&r1=5032&r2=5033&view=diff
==============================================================================
--- trunk/getfem/src/getfem_mesh_region.cc      (original)
+++ trunk/getfem/src/getfem_mesh_region.cc      Thu Jun 11 13:07:20 2015
@@ -439,7 +439,10 @@
     {
       size_type cv = itb->first;
       map_t::iterator it = r.wp().m.find(cv);
-      if (it != r.wp().m.end()) it->second &= ~(itb->second);
+      if (it != r.wp().m.end()){
+               it->second &= ~(itb->second);
+               if (it->second.none()) r.wp().m.erase(it);
+         }
     }
     return r;
   }


_______________________________________________
Getfem-commits mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-commits

Reply via email to