Fem: feminout: XML Fenics format: fixed error in read function

This commit is contained in:
joha2
2023-04-12 16:15:54 +02:00
committed by Bernd Hahnebach
parent d10c941d1f
commit 400048b22d

View File

@@ -244,7 +244,7 @@ def read_fenics_mesh_xml(xmlfilename):
for (elm, numbers) in list(element_dict.items()):
lst = sorted(list(numbers.items()), key=lambda x: x[0])
if lst != []:
Console.PrintWarning(elm, " min: ", lst[0], " max: ", lst[-1], "\n")
Console.PrintWarning("{} min: {} max: {}\n".format(elm, lst[0], lst[-1]))
else:
Console.PrintError("No mesh found\n")