@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).
| 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; |
nothing calls this directly
no test coverage detected