Partitions threads

WavKinS.get_partitionFunction
get_partition(Mx, My, nthreads, nthx=0, nthy=0)

Return nthreads vectors of indices partitioning Mx × My grid points for multithreading.

  • nthx: number of cuts in the $x$ direction
  • nthy: number of cuts in the $y$ direction

We must have nthx × nthy == nthreads.

WavKinS.get_partitionMethod
get_partition(M, nthreads)

Return nthreads vectors of indices partitioning M grid points for multithreading