https://gitlab.opengeosys.org/ogs/ogs.git
Revision 2d097f6fa0ca47addebef1ee93b5105f2a2cf701 authored by Norbert Grunwald on 23 September 2021, 16:52:58 UTC, committed by Norbert Grunwald on 23 September 2021, 16:52:58 UTC
TH2M Phase Transition Model Dissolution

See merge request ogs/ogs!3792
2 parent s 162f31e + e8b2807
Raw File
Tip revision: 2d097f6fa0ca47addebef1ee93b5105f2a2cf701 authored by Norbert Grunwald on 23 September 2021, 16:52:58 UTC
Merge branch 'TH2M_phasechange_dissolution' into 'master'
Tip revision: 2d097f6
Error.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, 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
back to top