MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / Vector

Method Vector

cpp/dolfinx/la/Vector.h:131–138  ·  view source on GitHub ↗

@brief Create a distributed vector. @param map Index map that describes the parallel layout of the data. @param bs Number of entries per index map 'index' (block size).

Source from the content-addressed store, hash-verified

129 /// the data.
130 /// @param bs Number of entries per index map 'index' (block size).
131 Vector(std::shared_ptr<const common::IndexMap> map, int bs)
132 : _map(map), _bs(bs), _x(bs * (map->size_local() + map->num_ghosts())),
133 _scatterer(
134 std::make_shared<common::Scatterer<ScatterContainer>>(*_map, bs)),
135 _buffer_local(_scatterer->local_indices().size()),
136 _buffer_remote(_scatterer->remote_indices().size())
137 {
138 }
139
140 /// Copy constructor
141 Vector(const Vector& x) = default;

Callers

nothing calls this directly

Calls 5

size_localMethod · 0.80
num_ghostsMethod · 0.80
sizeMethod · 0.45
index_mapMethod · 0.45
bsMethod · 0.45

Tested by

no test coverage detected