addMatGroupValsToPETSc Module Subroutine

module subroutine addMatGroupValsToPETSc(this, groupIndex, petscCont, mult, petscGroup)

Send off matrix values of given term group to the PETSc controller, multiplied by mult

Arguments

Type IntentOptional Attributes Name
class(Model), intent(in) :: this
integer(kind=ik), intent(in) :: groupIndex

Group index of terms whose matrices should be sent to PETSc

type(PETScController), intent(inout) :: petscCont

PETScController object housing PETSc matrices

real(kind=rk), intent(in) :: mult

Multiplier used when adding matrices to PETSc - usually -dt

integer(kind=ik), intent(in), optional :: petscGroup