swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: ceace3738a871785207924d670fb457db0f32a39 authored by Dmitri Naumov on 20 March 2021, 11:33:04 UTC
[App/IO] Remove unused XmlNumInterface.
Tip revision: ceace37
CheckVanGenuchtenExponentRange.cpp
/**
 * \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
 *
 * Created on April 20, 2020, 10:47 AM
 */

#include "CheckVanGenuchtenExponentRange.h"

#include "BaseLib/Error.h"

namespace MaterialPropertyLib
{
void checkVanGenuchtenExponentRange(const double m)
{
    if (m <= 0 || m >= 1)
    {
        OGS_FATAL(
            "The exponent value m = {:e} of van Genuchten saturation "
            "model, is out of its range of(0, 1) ",
            m);
    }
}
}  // namespace MaterialPropertyLib
back to top