Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/scalapackfx.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -2161,11 +2161,11 @@ contains
! Note that we explicitly multiply with a double here instead of
! dividing by an integer to enhance performance.
inv = 1.0_dp / real(descB, kind=dp)
blk = (globalInd - 1) * inv
blk(:) = (globalInd - 1) * inv

check = modulo(myPos - descSRC, nPos)

localPos = mod(blk + descSRC, nPos)
localPos(:) = mod(blk + descSRC, nPos)

calcAllIndices_ = .true.
if (present(calcAllIndices)) then
Expand Down