예제 #1
0
    def tolerances(self, component):
        """Return the (relative, absolute) error tolerances for
        a solution component.

        >>> (r, a) = d.tolerances('u')
        """
        ic = self.componentIndex(component)
        r = _cantera.domain_rtol(self._hndl, ic)
        a = _cantera.domain_atol(self._hndl, ic)
        return (r, a)
예제 #2
0
파일: onedim.py 프로젝트: anujg1991/cantera
    def tolerances(self, component):
        """Return the (relative, absolute) error tolerances for
        a solution component.

        >>> (r, a) = d.tolerances('u')
        """
        ic = self.componentIndex(component)
        r = _cantera.domain_rtol(self._hndl, ic)
        a = _cantera.domain_atol(self._hndl, ic)
        return (r, a)