ShiftTripletList_c Subroutine

public subroutine ShiftTripletList_c(triplet_list, row_shift, column_shift)

Shift the rows and columns of a triplet list by set values. Frequently, we have a triplet list that comes from the global matrix which we would like to shift into a local matrix. In that case, just pass the negative of the starting row and column (plus 1) to this routine.

Arguments

Type IntentOptional AttributesName
type(TripletList_c), intent(inout) :: triplet_list

The triplet list to shift.

integer, intent(in) :: row_shift

The row offset to shift by.

integer, intent(in) :: column_shift

The column offset to shift by.


Contents

None