Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FEM: print in brackets
  • Loading branch information
berndhahnebach authored and wwmayer committed Oct 26, 2015
1 parent 02be8e6 commit cc3fee5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/MechanicalMaterial.py
Expand Up @@ -141,7 +141,7 @@ def __init__(self, obj):
self.import_materials()
previous_mat_path = self.get_material_path(self.material)
if not previous_mat_path:
print "Previously used material cannot be found in material directories. Using transient material."
print("Previously used material cannot be found in material directories. Using transient material.")
material_name = self.get_material_name(self.material)
if material_name != 'None':
self.add_transient_material(self.material)
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Fem/ccxInpWriter.py
Expand Up @@ -349,8 +349,8 @@ def write_constraints_force(self, f):

print('bad_refedge_nodes')
bad_refedge_nodes = self.mesh_object.FemMesh.getNodesByEdge(bad_refedge)
print len(bad_refedge_nodes)
print bad_refedge_nodes
print(len(bad_refedge_nodes))
print(bad_refedge_nodes)
# import FreeCADGui
# FreeCADGui.ActiveDocument.Compound_Mesh.HighlightedNodes = bad_refedge_nodes

Expand Down Expand Up @@ -773,7 +773,7 @@ def get_refedge_node_lengths(self, edge_table):
# [ (nodeID, length), ... , (nodeID, length) ] some nodes will have more than one entry
node_length_table = []
mesh_edge_length = 0
# print len(edge_table)
# print(len(edge_table))
for me in edge_table:
if len(edge_table[me]) == 2: # 2 node mesh edge
# end_node_length = mesh_edge_length / 2
Expand Down

0 comments on commit cc3fee5

Please sign in to comment.