Skip to content

Commit

Permalink
FEM: member tools, pep8 and a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Feb 19, 2020
1 parent 5bafb18 commit 822832e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Fem/femtools/membertools.py
Expand Up @@ -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:
Expand Down

0 comments on commit 822832e

Please sign in to comment.