From 02b34f01637db7a14c906132be60b090fecd7673 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 3 Mar 2020 14:29:07 +0100 Subject: [PATCH] Fix a bug in convertLiquidFlowToMPL script. --- xml/convertLiquidFlowToMPL.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml/convertLiquidFlowToMPL.py b/xml/convertLiquidFlowToMPL.py index fafd7be..2e97d79 100755 --- a/xml/convertLiquidFlowToMPL.py +++ b/xml/convertLiquidFlowToMPL.py @@ -312,6 +312,8 @@ def removeMaterialProperty(root, property_type, property_name, phase, if p := readConstantPermeabilityTensorEntries(material_property): # Find parameter param = root.find("./parameters/parameter/[name='" + p + "']") + if param == None: + return if parameterUsesLocalCoordinateSystem(param): # Keep parameters with local coord systems as they are. removeXmlSubtree(material_property) -- GitLab