dolfinx.cpp.common

Common module

Functions

init_logging(arg0)

list_timings(arg0, arg1)

timing(arg0)

Classes

IndexMap(self, arg0, arg1, arg2, arg3, 1]], arg4)

Timer(*args, **kwargs)

Timer class

TimingType(self, arg0)

Members:

class dolfinx.cpp.common.IndexMap(self: dolfinx.cpp.common.IndexMap, arg0: MPICommWrapper, arg1: int, arg2: List[int], arg3: numpy.ndarray[numpy.int64[m, 1]], arg4: List[int]) → None

Bases: pybind11_builtins.pybind11_object

ghost_owner_rank(self: dolfinx.cpp.common.IndexMap) → numpy.ndarray[numpy.int32[m, 1]]

Return owning process for each ghost index

property ghosts

Return list of ghost indices

global_indices(self: dolfinx.cpp.common.IndexMap) → List[int]
indices(self: dolfinx.cpp.common.IndexMap) → numpy.ndarray[numpy.int64[m, 1]]

Return array of global indices for all indices on this process

property local_range

Range of indices owned by this map

property num_ghosts
property size_global
property size_local
class dolfinx.cpp.common.Timer(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

Timer class

Overloaded function.

  1. __init__(self: dolfinx.cpp.common.Timer) -> None

  2. __init__(self: dolfinx.cpp.common.Timer, arg0: str) -> None

elapsed(self: dolfinx.cpp.common.Timer) → List[float[3]]
resume(self: dolfinx.cpp.common.Timer) → None
start(self: dolfinx.cpp.common.Timer) → None

Start timer

stop(self: dolfinx.cpp.common.Timer) → float

Stop timer

class dolfinx.cpp.common.TimingType(self: dolfinx.cpp.common.TimingType, arg0: int) → None

Bases: pybind11_builtins.pybind11_object

Members:

wall

system

user

property name
system = <TimingType.system: 2>
user = <TimingType.user: 1>
wall = <TimingType.wall: 0>
dolfinx.cpp.common.init_logging(arg0: List[str]) → None
dolfinx.cpp.common.list_timings(arg0: MPICommWrapper, arg1: List[dolfinx.cpp.common.TimingType]) → None
dolfinx.cpp.common.timing(arg0: str) → Tuple[int, float, float, float]