FEM: member tools, pep8 and a comment

This commit is contained in:
Bernd Hahnebach
2020-02-19 07:23:52 +01:00
parent 5bafb18a7d
commit 822832e678

View File

@@ -137,7 +137,11 @@ def get_mesh_to_solve(analysis):
"""
mesh_to_solve = None
for m in analysis.Group:
if m.isDerivedFrom("Fem::FemMeshObject") and not femutils.is_of_type(m, "Fem::FemMeshResult"):
if (
m.isDerivedFrom("Fem::FemMeshObject")
# the next line should not be needed as the result mesh is not a analysis member
and not femutils.is_of_type(m, "Fem::FemMeshResult")
):
if not mesh_to_solve:
mesh_to_solve = m
else: