From 952bb20bd7471184e81464df83691f06970c7af0 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 19 Sep 2016 09:38:34 +0200 Subject: [PATCH] fixed: do not reset nGlPatches if no partitioning info is parsed we end up parsing the partitioning information twice with model generators. since myPatches is filled at this point, the second block won't recalculate the proper nGlPatches for us. fix this by not reseting nGlPatches unless we hit the block. --- src/SIM/SIMbase.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SIM/SIMbase.C b/src/SIM/SIMbase.C index 7f0d5559..00c15e71 100644 --- a/src/SIM/SIMbase.C +++ b/src/SIM/SIMbase.C @@ -169,8 +169,9 @@ bool SIMbase::parseGeometryTag (const TiXmlElement* elem) return true; IFEM::cout <<"\tNumber of partitions: "<< proc << std::endl; - nGlPatches = 0; const TiXmlElement* part = elem->FirstChildElement("part"); + if (part) + nGlPatches = 0; for (; part; part = part->NextSiblingElement("part")) { int first = -2, last = -2; utl::getAttribute(part,"proc",proc);