s_spline_matrix_banded__add_element Subroutine

private subroutine s_spline_matrix_banded__add_element(self, i, j, a_ij)

Type Bound

sll_t_spline_matrix_banded

Arguments

Type IntentOptional Attributes Name
class(sll_t_spline_matrix_banded), intent(inout) :: self
integer, intent(in) :: i
integer, intent(in) :: j
real(kind=wp), intent(in) :: a_ij

Calls

proc~~s_spline_matrix_banded__add_element~~CallsGraph proc~s_spline_matrix_banded__add_element sll_t_spline_matrix_banded%s_spline_matrix_banded__add_element sll_assert sll_assert proc~s_spline_matrix_banded__add_element->sll_assert

Source Code

  subroutine s_spline_matrix_banded__add_element( self, i, j, a_ij )
    class(sll_t_spline_matrix_banded), intent(inout) :: self
    integer                          , intent(in   ) :: i
    integer                          , intent(in   ) :: j
    real(wp)                         , intent(in   ) :: a_ij

    SLL_ASSERT( max( 1, j-self%ku ) <= i )
    SLL_ASSERT( i <= min( self%n, j+self%kl ) )

    self%q(self%kl+self%ku+1+i-j,j) = self%q(self%kl+self%ku+1+i-j,j)+ a_ij

  end subroutine s_spline_matrix_banded__add_element