From 284655f9535280c920e958734c45e2cbbf25ba61 Mon Sep 17 00:00:00 2001 From: Joost van Zwieten Date: Fri, 6 Aug 2021 11:24:25 +0200 Subject: [PATCH] fix StructuredLine fallback boundary names The `StructuredLine` function defines duplicate boundary names as default. When requesting the boundary of the structured line, an attempt is made to create a `DisjointUnionTopology`, but this fails because the names are duplicate. This patch fixes the problem by defining distinct names as default. --- nutils/topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nutils/topology.py b/nutils/topology.py index 021e5e989..25dfc8106 100644 --- a/nutils/topology.py +++ b/nutils/topology.py @@ -847,7 +847,7 @@ def __init__(self, trans, opposite): def StructuredLine(root:transform.stricttransformitem, i:types.strictint, j:types.strictint, periodic:bool=False, bnames:types.tuple[types.strictstr]=None): if bnames is None: - bnames = ('_structured_line_dummy_boundary_name_',) * 2 + bnames = '_structured_line_dummy_boundary_left', '_structured_line_dummy_boundary_right' return StructuredTopology(root, axes=(transformseq.DimAxis(i,j,j if periodic else 0,periodic),), nrefine=0, bnames=(bnames,)) class StructuredTopology(Topology):