add_coo Subroutine

private subroutine add_coo(self, row, col, value)

Type Bound

type_coo

Arguments

Type IntentOptional Attributes Name
class(type_coo), intent(inout) :: self
integer(kind=int32), intent(in) :: row
integer(kind=int32), intent(in) :: col
real(kind=real64), intent(in) :: value

Calls

proc~~add_coo~~CallsGraph proc~add_coo type_coo%add_coo proc~find_coo type_coo%find_coo proc~add_coo->proc~find_coo

Source Code

    subroutine add_coo(self, row, col, value)
        implicit none
        class(type_coo), intent(inout) :: self
        integer(int32), intent(in) :: row, col
        real(real64), intent(in) :: value

        integer(int32) :: index

        index = self%find(row, col)
        self%val(index) = self%val(index) + value

    end subroutine add_coo