tensor_transfer Subroutine
public pure subroutine tensor_transfer(axis, ncoarse, swap_coarse, swap_fine, rowptr, col, val, ok)
Form T(i,j)=T1(i1,j1)*T2(i2,j2) from successful Oslo transfers. The axis list is in common tangent order. Rows follow the fine patch's native order and columns increase in the coarse patch's native order within each row. With one tangent, the existing CSR arrays move directly to the outputs.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(axis_transfer), | intent(inout) | :: | axis(:) | |||
| integer, | intent(in) | :: | ncoarse(:) | |||
| logical, | intent(in) | :: | swap_coarse | |||
| logical, | intent(in) | :: | swap_fine | |||
| integer, | intent(out), | allocatable | :: | rowptr(:) | ||
| integer, | intent(out), | allocatable | :: | col(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | val(:) | ||
| logical, | intent(out) | :: | ok |