dolfinx.cpp.common

Common module

Classes

IndexMap(, order=, writable=False], ...)

Reduction(value[, names, module, qualname, ...])

Timer(self, task)

Timer class

class dolfinx.cpp.common.IndexMap(self, comm: MPICommWrapper, local_size: int)
class dolfinx.cpp.common.IndexMap(self, comm: MPICommWrapper, local_size: int, ghosts: ndarray[dtype=int64, shape=(*), order='C', writable=False], ghost_owners: ndarray[dtype=int32, shape=(*), order='C', writable=False])
class dolfinx.cpp.common.IndexMap(self, comm: MPICommWrapper, local_size: int, dest_src: collections.abc.Sequence[ndarray[dtype=int32, shape=(*), order='C', writable=False]], ghosts: ndarray[dtype=int64, shape=(*), order='C', writable=False], ghost_owners: ndarray[dtype=int32, shape=(*), order='C', writable=False])

Bases: object

property comm

(self) -> MPICommWrapper

property ghosts

Return list of ghost indices

global_to_local
imbalance

Imbalance of the current IndexMap.

index_to_dest_ranks
property local_range

Range of indices owned by this map

local_to_global
property num_ghosts

(self) -> int

property owners

(self) -> numpy.ndarray[dtype=int32, shape=(*), writable=False]

property size_global

(self) -> int

property size_local

(self) -> int

class dolfinx.cpp.common.Reduction(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

average = 0
max = 1
min = 2
class dolfinx.cpp.common.Timer(self, task: str | None)

Bases: object

Timer class

elapsed

Elapsed time

flush

Flush timer

resume

Resume timer

start

Start timer

stop

Stop timer