File: test_numroc.py

package info (click to toggle)
elpa 2022.11.001-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,636 kB
  • sloc: f90: 61,114; ansic: 39,478; sh: 4,795; cpp: 4,291; makefile: 923; asm: 834; python: 635; perl: 141
file content (7 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
def test_numroc():
    from pyelpa import DistributedMatrix
    n = 100
    nb = 16
    assert(DistributedMatrix.numroc(n, nb, 0, 0, 3) == 36)
    assert(DistributedMatrix.numroc(n, nb, 1, 0, 3) == 32)
    assert(DistributedMatrix.numroc(n, nb, 1, 1, 3) == 36)