On Tue, Aug 2, 2016 at 2:02 PM, Campbell, Ian
<i.campbel...@imperial.ac.uk> wrote:
>
> I've tried the mean-square and RMS values, but they're both orders of 
> magnitude away from the residual returned by '.sweep'. As such, can you 
> please tell me the formula used by '.sweep' to compute the residual, so that 
> I may use the same one?

I think it's the L2 norm of "A * x - b" without any normalization,
where x is the variable value before the linear solve. See,

    https://github.com/usnistgov/fipy/blob/develop/fipy/solvers/solver.py#L135

-- 
Daniel Wheeler
_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to