MGDefaultResidual

Default routine to calculate the residual.

Synopsis

int MGDefaultResidual(Mat mat,Vec b,Vec x,Vec r)
Collective on Mat and Vec

Input Parameters

mat - the matrix
b - the right-hand-side
x - the approximate solution Output Parameter:
r -location to store the residual

Keywords

MG, default, multigrid, residual

See Also

MGSetResidual()

Location: src/pc/impls/mg/mgfunc.c
PC Index
Table of Contents