linearSolve Interface

interface
private module subroutine linearSolve(this, knownVec, unknownVec, objGroup)

Arguments

Type IntentOptional Attributes Name
class(PETScController), intent(inout) :: this
real(kind=rk), intent(in), dimension(:) :: knownVec
real(kind=rk), intent(out), dimension(:) :: unknownVec
integer(kind=ik), intent(in), optional :: objGroup

Description

Solve the equation petscMat * unknownVec = knownVec where the vectors are local to each processor - assembles and zeros out the matrix before/after the solve