Skip to content

Commit

Permalink
FEM: mesh tools, fix not found vertex for reference shape point search
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jan 7, 2020
1 parent c075380 commit 1b2a9a9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Mod/Fem/femmesh/meshtools.py
Expand Up @@ -771,9 +771,15 @@ def get_force_obj_vertex_nodeload_table(
)
node = femmesh.getNodesByVertex(ref_node)
elem_info_string = "node load on shape: " + o.Name + ":" + elem
force_obj_node_load_table.append(
(elem_info_string, {node[0]: node_load / node_count})
)
if len(node) == 1:
force_obj_node_load_table.append(
(elem_info_string, {node[0]: node_load / node_count})
)
else:
FreeCAD.Console.PrintError(
" Problem on retrieving mesh node for: {}\n"
.format(elem_info_string)
)
return force_obj_node_load_table


Expand Down

0 comments on commit 1b2a9a9

Please sign in to comment.