6#include <spdlog/spdlog.h>
43 std::size_t
operator()(std::array<std::size_t, 3>
const& c)
const
48 return std::numeric_limits<std::size_t>::max();
53 std::size_t
getCellIdx(std::size_t u, std::size_t v, std::size_t w)
const
58 ERR(
"GocadSGridReader::IndexCalculator::getCellIdx(): At least "
59 "one grid coordinate to big.");
60 ERR(
"\t Given: ({:d}, {:d}, {:d}), max allowed cell grid coords: "
61 "({:d}, {:d}, {:d}).",
63 return std::numeric_limits<std::size_t>::max();
71 std::array<std::size_t, 3>
const coords{
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
std::size_t getCellIdx(std::size_t u, std::size_t v, std::size_t w) const
std::size_t operator()(std::array< std::size_t, 3 > const &c) const
IndexCalculator()=default
std::array< std::size_t, 3 > getCoordsForID(std::size_t id) const
IndexCalculator(std::size_t x_dim, std::size_t y_dim, std::size_t z_dim)