Revision b0220960c029f77fe32f2a761b4db57f2fdac55a authored by Dmitry Yu. Naumov on 03 April 2023, 20:04:11 UTC, committed by Dmitry Yu. Naumov on 03 April 2023, 20:04:11 UTC
[ci] Reducing runtime on wheel and notebook jobs See merge request ogs/ogs!4552
Error.h
/**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <cstdlib>
#include "Logging.h"
#ifdef OGS_FATAL_ABORT
#define OGS_FATAL(...) \
{ \
BaseLib::console->critical("{}:{} {}() ", __FILE__, __LINE__, \
__FUNCTION__, fmt::format(__VA_ARGS__)); \
std::abort(); \
}
#else // OGS_FATAL_ABORT
#include <stdexcept>
#define OGS_FATAL(...) \
{ \
BaseLib::console->critical("{}:{} {}() ", __FILE__, __LINE__, \
__FUNCTION__, fmt::format(__VA_ARGS__)); \
throw std::runtime_error(fmt::format(__VA_ARGS__)); \
}
#endif // OGS_FATAL_ABORT
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...