Skip to content
Util.hpp 335 B
Newer Older
#pragma once

#include <cstddef>
#include <string>
struct Size {
	std::size_t Cols{};
	std::size_t Rows{};
};

struct Coord {
	std::size_t X{};
	std::size_t Y{};
	Coord(std::size_t x, std::size_t y) : X(x), Y(y) {}
};

struct SizeCoord {
	::Size Size;
	::Coord Coord;
};

[[noreturn]] void MpiReportErrorAbort(const std::string& err);