Skip to content

Commit

Permalink
remove python2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
philbucher authored Nov 10, 2020
1 parent 76a506a commit bcc3904
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7

import KratosMultiphysics
import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanics

Expand All @@ -10,7 +8,7 @@ class StructuralMechanicsAnalysisWithEigenPostProcessing(StructuralMechanicsAnal
It also shows how the "StructuralMechanicsAnalysis" can be customized by deriving from it
"""
def Finalize(self):
super(StructuralMechanicsAnalysisWithEigenPostProcessing,self).Finalize()
super().Finalize()
main_model_part_name = self.project_parameters["solver_settings"]["model_part_name"].GetString()
main_model_part = self.model[main_model_part_name]
# Postprocessing the output in the terminal:
Expand All @@ -28,5 +26,3 @@ def Finalize(self):
model = KratosMultiphysics.Model()
simulation = StructuralMechanicsAnalysisWithEigenPostProcessing(model,parameters)
simulation.Run()


0 comments on commit bcc3904

Please sign in to comment.