From bf7319dd7ead83d1f42a5bc1c71effe506e06f53 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 19 Mar 2020 15:24:51 +0100
Subject: [PATCH] [convertLiquidFlow] Reduce output messages.

---
 xml/convertLiquidFlowToMPL.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/xml/convertLiquidFlowToMPL.py b/xml/convertLiquidFlowToMPL.py
index 5b6c528..56f7b9f 100755
--- a/xml/convertLiquidFlowToMPL.py
+++ b/xml/convertLiquidFlowToMPL.py
@@ -230,8 +230,8 @@ def addMPLMaterialProperty(root, property_type, property_name, phase,
                                   + str(porous_medium_id)
                                   + "\"]/" + property_name)
     if material_property == None:
-        print("Material property", property_type + "/" + property_name,
-              "not found")
+        #print("Material property", property_type + "/" + property_name,
+        #      "not found")
         return
 
     if v := readConstantValue(material_property):
@@ -380,11 +380,9 @@ def recursevelyEmpty(tree):
     #print("Recursively empty checking:", '<' + tree.tag + '>', "with text", tree.text)
     if tree is None:
         print("Recursively empty found got an non-existing tree.")
-        print("RETURN False")
         return False    # non-exisiting tree is not empty, s.t. it will not be deleted
     if tree.text is not None:
         print("Recursively empty found this non-empty part:", '<' + tree.tag + '>', "with text", tree.text)
-        print("RETURN False")
         return False
     all_recursively_empty = all(recursevelyEmpty(c) for c in tree.iterchildren())
     print("RETURN", all_recursively_empty)
-- 
GitLab