addImplicitTerm Interface

interface
private pure module subroutine addImplicitTerm(this, impTerm, implicitGroups, generalGroups, termName, skipPattern)

Arguments

Type IntentOptional Attributes Name
class(Model), intent(inout) :: this
class(MatrixTerm), intent(inout), allocatable :: impTerm

MatrixTerm object to be reallocated to this model

integer(kind=ik), intent(in), dimension(:) :: implicitGroups

Implicit groups the added term should belong to

integer(kind=ik), intent(in), dimension(:) :: generalGroups

General groups the added term should belong to

character(len=*), intent(in) :: termName

Name of added term for indexing purposes

logical, intent(in), optional :: skipPattern

True if the matrix term pattern should not be added to PETSc preallocation

Description

Add a MatrixTerm object to the model (deallocating the source!), and specify which implicit and general groups it belongs to