Strategy python

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
(Solve)
(Solve)
Line 7: Line 7:
  
 
==Solve==
 
==Solve==
This function is called at every time step to solve the problem
+
This function is called at every time step to solve the problem.
first of all it checks if '''Initial''' is called or no so just in the first call of '''Solve''' scheme and elements are initialized and then corresponding flag put True
+
First of all it checks if '''Initialize''' is called or no so just in the first call of '''Solve''' scheme and elements are initialized and then corresponding flag put True

Revision as of 07:47, 12 March 2008

functions in strategy_python are descibed here

Initialize

calls Initialize and InitializeElements of the Scheme

  • Initilize is intended to be called just once when the strategy is initialized
  • InitializeElements calls Initialize function of the elements

Solve

This function is called at every time step to solve the problem. First of all it checks if Initialize is called or no so just in the first call of Solve scheme and elements are initialized and then corresponding flag put True

Personal tools
Categories