]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix svg out that with new subdomain changes
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Jun 2013 00:22:23 +0000 (00:22 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Jun 2013 00:22:23 +0000 (00:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@29710 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_out.cc

index 837063c9ef030eaa383d40ec704b3fd449691990..57169eaae279d04de4009b8d5f4c0ca81dd4adb7 100644 (file)
@@ -1460,7 +1460,8 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const
 
       materials[(unsigned int)cell->material_id()] = 1;      
       levels[(unsigned int)cell->level()] = 1;
-      subdomains[cell->subdomain_id()+2] = 1;
+      if (cell->active())
+       subdomains[cell->subdomain_id()+2] = 1;
       level_subdomains[cell->level_subdomain_id()+2] = 1;
     }
 

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.