Source code for hydpy.models.test.test_solver
# pylint: disable=missing-module-docstring
import numpy
from hydpy.core import parametertools
from hydpy.core.typingtools import *
[docs]
class AbsErrorMax(parametertools.SolverParameter):
"""Absolute numerical error tolerance [mm/T]."""
NDIM: Final[Literal[0]] = 0
TYPE: Final = float
SPAN = (0.0, None)
INIT = 0.01
[docs]
class RelErrorMax(parametertools.SolverParameter):
"""Relative numerical error tolerance [1/T]."""
NDIM: Final[Literal[0]] = 0
TYPE: Final = float
SPAN = (0.0, None)
INIT = numpy.nan
[docs]
class RelDTMin(parametertools.SolverParameter):
"""Smallest relative integration time step size allowed [-]."""
NDIM: Final[Literal[0]] = 0
TYPE: Final = float
SPAN = (0.0, 1.0)
INIT = 0.001
[docs]
class RelDTMax(parametertools.SolverParameter):
"""Largest relative integration time step size allowed [-]."""
NDIM: Final[Literal[0]] = 0
TYPE: Final = float
SPAN = (0.0, 1.0)
INIT = 1.0