class_docstr: Responsible for a rectangular partitioning of a global domain,
  which is expressed as the numbers of cells in the different
  spatial directions. The partitioning info is expressed as an
  array of integers, each indicating the number of subdomains in
  one spatial direction.
code: def __init__(
      self, my_id=-1, num_procs=-1, global_num_cells=[], num_parts=[]
  ):
      self.nsd = 0
      self.my_id = my_id
      self.num_procs = num_procs
      self.redim(global_num_cells, num_parts)
  
imports: from numpy import ascontiguousarray, frombuffer, zeros
label_desc: Use image node_id 1 to create a new RectPartitioner object  with example: obj = RectPartitioner(my_id, num_procs, global_num_cells, num_parts)