residuum Interface

interface
public module subroutine residuum(self, u, b, res, resmax)

Arguments

Type IntentOptional Attributes Name
class(multigrid_solver_t), intent(in) :: self

Instance of the type

real(kind=FP), intent(inout), dimension(:) :: u

Guess for solution

real(kind=FP), intent(inout), dimension(:) :: b

Right hand side

real(kind=FP), intent(out) :: res

Residuum (root mean square) : ||Hu-b|| / ||b||+eps

real(kind=FP), intent(out), optional :: resmax

Residuum maximum deviation max(Hu-b)

Description

Computes the residuum ||Hu-b|| / ||b||