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