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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TripletList_r), | 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. |
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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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. |