12#include <spdlog/spdlog.h>
49 std::size_t
operator()(std::array<std::size_t, 3>
const& c)
const
54 return std::numeric_limits<std::size_t>::max();
59 std::size_t
getCellIdx(std::size_t u, std::size_t v, std::size_t w)
const
64 ERR(
"GocadSGridReader::IndexCalculator::getCellIdx(): At least "
65 "one grid coordinate to big.");
66 ERR(
"\t Given: ({:d}, {:d}, {:d}), max allowed cell grid coords: "
67 "({:d}, {:d}, {:d}).",
69 return std::numeric_limits<std::size_t>::max();
77 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)