# ICE Revision: $Id$
"""An Analyzed Runner that does something at every time-step"""
from .BasicRunner import BasicRunner
from .StepAnalyzedCommon import StepAnalyzedCommon
[docs]class StepAnalyzedRunner(StepAnalyzedCommon,BasicRunner):
"""The output of a command is analyzed while being run. At every time-step a command is performed"""
def __init__(self,
analyzer,
argv=None,
silent=False,
logname="PyFoamSolve",
smallestFreq=0.,
server=False,
remark=None,
parameters=None,
jobId=None,
echoCommandLine=None):
""":param smallestFreq: the smallest intervall of real time (in seconds) that the time change is honored"""
BasicRunner.__init__(self,
argv,
silent,
logname,
server=server,
remark=remark,
parameters=parameters,
echoCommandLine=echoCommandLine,
jobId=jobId)
StepAnalyzedCommon.__init__(self,
logname,
analyzer,
smallestFreq=smallestFreq)
# Should work with Python3 and Python2