From 66f795005a0da1ff3dc10526b0816d48a7750745 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 1 Jun 2013 00:22:23 +0000 Subject: [PATCH] fix svg out that with new subdomain changes git-svn-id: https://svn.dealii.org/trunk@29710 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_out.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/source/grid/grid_out.cc b/deal.II/source/grid/grid_out.cc index 837063c9ef..57169eaae2 100644 --- a/deal.II/source/grid/grid_out.cc +++ b/deal.II/source/grid/grid_out.cc @@ -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; } -- 2.39.5