polaris.e3sm.init.partitions.RegionGraph

class polaris.e3sm.init.partitions.RegionGraph(filename: str, cells: ndarray | None = None)[source]

A graph file to partition, and which of a mesh’s cells it covers.

Variables:
  • filename (str) – The graph file, in the format gpmetis reads.

  • cells (numpy.ndarray or None) – The index in the full mesh of each vertex in the graph, or None if the graph is the whole mesh.

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

cells

Alias for field number 1

filename

Alias for field number 0