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
gpmetisreads.cells (numpy.ndarray or None) – The index in the full mesh of each vertex in the graph, or
Noneif 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
cellsAlias for field number 1
filenameAlias for field number 0