Skip to content

Commit

Permalink
FEM: py3, set prints in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Aug 31, 2017
1 parent 083dcdf commit fab58e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Fem/FemToolsCcx.py
Expand Up @@ -346,7 +346,7 @@ def check_prerequisites(self):
mat_obj = m['Object']
if mat_obj.Category == 'Solid':
if 'YoungsModulus' in mat_map:
# print Units.Quantity(mat_map['YoungsModulus']).Value
# print(Units.Quantity(mat_map['YoungsModulus']).Value)
if not Units.Quantity(mat_map['YoungsModulus']).Value:
message += "Value of YoungsModulus is set to 0.0.\n"
else:
Expand Down Expand Up @@ -723,8 +723,8 @@ def has_for_nonpositive_jacobians(self):
nonpositive_jacobian_elenodes = []
for line in self.ccx_stdout.splitlines():
if 'determinant in element' in line:
# print line
# print line.split()
# print(line)
# print(line.split())
non_posjac_ele = int(line.split()[3])
# print(non_posjac_ele)
if non_posjac_ele not in nonpositive_jacobian_elements:
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/ObjectsFem.py
Expand Up @@ -364,13 +364,13 @@ def makeSolverZ88(name="Z88"):


'''
# print supportedTypes
# get the supportedTypes
App.newDocument()
module = 'Fem'
FreeCADGui.doCommand('import ' + module)
for s in sorted(App.ActiveDocument.supportedTypes()):
if s.startswith(module):
print s
print(s)
'''

## @}
2 changes: 1 addition & 1 deletion src/Mod/Fem/importCcxFrdResults.py
Expand Up @@ -260,7 +260,7 @@ def readResult(frd_input):
# hexa20 import works with the following frd file node assignment
elements_hexa20[elem] = (nd8, nd5, nd6, nd7, nd4, nd1, nd2, nd3, nd20, nd17,
nd18, nd19, nd12, nd9, nd10, nd11, nd16, nd13, nd14, nd15)
# print elements_hexa20[elem]
# print(elements_hexa20[elem])
elif elemType == 5 and input_continues is False:
# first line
# C3D15 Calculix --> penta15 FreeCAD
Expand Down

0 comments on commit fab58e9

Please sign in to comment.