dolfinx.cpp.common

Common module

Classes

IndexMap(, order=], ghost_owners, ...)

Reduction

Timer()

Timer class

TimingType

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, writable=False, shape=(*), order='C'], ghost_owners: ndarray[dtype=int32, writable=False, shape=(*), order='C'])
class dolfinx.cpp.common.IndexMap(self, comm: MPICommWrapper, local_size: int, dest_src: list[ndarray[dtype=int32, writable=False, shape=(*), order='C']], ghosts: ndarray[dtype=int64, writable=False, shape=(*), order='C'], ghost_owners: ndarray[dtype=int32, writable=False, shape=(*), order='C'])

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, writable=False, shape=(*)]

property size_global

(self) -> int

property size_local

(self) -> int

class dolfinx.cpp.common.Reduction

Bases: object

average = dolfinx.cpp.common.Reduction.average
max = dolfinx.cpp.common.Reduction.max
min = dolfinx.cpp.common.Reduction.min
class dolfinx.cpp.common.Timer(self)
class dolfinx.cpp.common.Timer(self, task: str)

Bases: object

Timer class

elapsed
resume
start

Start timer

stop

Stop timer

class dolfinx.cpp.common.TimingType

Bases: object

system = dolfinx.cpp.common.TimingType.system
user = dolfinx.cpp.common.TimingType.user
wall = dolfinx.cpp.common.TimingType.wall