Skip to content

Commit

Permalink
hotfix-explicit-solver
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-m-carbonell committed Jul 29, 2017
1 parent c76823d commit 1be1c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def Initialize(self):

print("::[Mechanical Solver]:: -END- ")

def SetVariables(self):
def AddVariables(self):

solid_mechanics_solver.MechanicalSolver.SetVariables(self)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def SetVariables(self):
self.nodal_variables = self.nodal_variables + ['VOLUME_ACCELERATION','POSITIVE_FACE_PRESSURE','NEGATIVE_FACE_PRESSURE','POINT_LOAD','LINE_LOAD','SURFACE_LOAD']

# Add nodal force variables for component wise calculation
if self.settings["component_wise"].GetBool():
self.nodal_variables = self.nodal_variables + ['INTERNAL_FORCE','EXTERNAL_FORCE']
if( self.settings.Has("component_wise") ):
if self.settings["component_wise"].GetBool():
self.nodal_variables = self.nodal_variables + ['INTERNAL_FORCE','EXTERNAL_FORCE']

# Add rotational variables
if self.settings["rotation_dofs"].GetBool():
Expand Down

0 comments on commit 1be1c4f

Please sign in to comment.