Skip to content

Commit

Permalink
[Core] Adding clearing of processes to Clear in AnalysisStage
Browse files Browse the repository at this point in the history
  • Loading branch information
loumalouomega authored Sep 8, 2023
1 parent dd4bb40 commit 8569daa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kratos/python_scripts/analysis_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,30 @@ def OutputSolutionStep(self):

def Check(self):
"""This function checks the AnalysisStage
Keyword arguments:
self -- It signifies an instance of a class.
"""
# Checking solver
self._GetSolver().Check()

# Checking processes
for process in self._GetListOfProcesses():
process.Check()

def Clear(self):
"""This function clears the AnalysisStage
Keyword arguments:
self -- It signifies an instance of a class.
"""
# Clearing solver
self._GetSolver().Clear()

# Clearing processes
for process in self._GetListOfProcesses():
process.Clear()

def ModifyInitialProperties(self):
"""this is the place to eventually modify material properties in the stage """
pass
Expand Down

0 comments on commit 8569daa

Please sign in to comment.