Skip to content

Commit

Permalink
FEM: writer base, extend error message
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed May 5, 2020
1 parent 3b8b045 commit baf2181
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Mod/Fem/femsolver/writerbase.py
Expand Up @@ -100,11 +100,17 @@ def __init__(
self.theshape = self.mesh_object.Shape
elif hasattr(self.mesh_object, "Part"):
self.theshape = self.mesh_object.Part
else:
FreeCAD.Console.PrintError(
"A finite mesh without a link to a Shape was given. "
"Happen on pure mesh objects. Some methods might be broken.\n"
)
self.femmesh = self.mesh_object.FemMesh
else:
FreeCAD.Console.PrintError(
"No finite element mesh object was given to the writer class. "
"In rare cases this might not be an error.\n")
"No finite element mesh object was given to the writer class. "
"In rare cases this might not be an error. Some methods might be broken.\n"
)
self.femnodes_mesh = {}
self.femelement_table = {}
self.constraint_conflict_nodes = []
Expand Down

0 comments on commit baf2181

Please sign in to comment.