| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // Copyright (C) 2025 Tiago V. L. Amorim (@tiagovla) | ||
| 2 | // | ||
| 3 | // This file is part of oiseau (https://github.com/tiagovla/oiseau) | ||
| 4 | // | ||
| 5 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 6 | |||
| 7 | #include "oiseau/mesh/geometry.hpp" | ||
| 8 | |||
| 9 | #include <cstddef> | ||
| 10 | #include <span> | ||
| 11 | #include <utility> | ||
| 12 | #include <vector> | ||
| 13 | |||
| 14 | using namespace oiseau::mesh; | ||
| 15 | |||
| 16 | ✗ | Geometry::Geometry() = default; | |
| 17 | 4 | Geometry::~Geometry() = default; | |
| 18 | ✗ | std::span<double> Geometry::x() { return m_x; }; | |
| 19 | ✗ | std::span<double> Geometry::x_at(std::size_t pos) { return {&m_x[pos * m_dim], 3}; }; | |
| 20 | 2 | Geometry::Geometry(std::vector<double> &&x, unsigned dim) : m_x(std::move(x)), m_dim(dim) {}; | |
| 21 | ✗ | unsigned Geometry::dim() const { return m_dim; }; | |
| 22 |