Skip to content

Commit

Permalink
FEM: Use local variable to avoid long strings in write_constraints_fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed May 1, 2015
1 parent 0b7c028 commit dec69a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Mod/Fem/ccxInpWriter.py
Expand Up @@ -145,10 +145,11 @@ def write_step_begin(self, f):
def write_constraints_fixed(self, f):
f.write('\n** constaints\n')
for fixed_object in self.fixed_objects:
fix_obj_name = fixed_object['Object'].Name
f.write('*BOUNDARY\n')
f.write(fixed_object['Object'].Name + ',1\n')
f.write(fixed_object['Object'].Name + ',2\n')
f.write(fixed_object['Object'].Name + ',3\n\n')
f.write(fix_obj_name + ',1\n')
f.write(fix_obj_name + ',2\n')
f.write(fix_obj_name + ',3\n\n')

def write_constraints_force(self, f):
f.write('\n** loads\n')
Expand Down

0 comments on commit dec69a8

Please sign in to comment.