Commit 5e7bd146 authored by wenqing's avatar wenqing Committed by Dmitry Yu. Naumov
Browse files

[MPL] Added createGeneralWaterVapourLatentHeat

parent 4bffc13e
/**
* \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 March 19, 2021, 11:51 AM
*/
#include "CreateGeneralWaterVapourLatentHeat.h"
#include "BaseLib/ConfigTree.h"
#include "GeneralWaterVapourLatentHeat.h"
#include "MaterialLib/MPL/Property.h"
namespace MaterialPropertyLib
{
std::unique_ptr<Property> createGeneralWaterVapourLatentHeat(
BaseLib::ConfigTree const& config)
{
//! \ogs_file_param{properties__property__type}
config.checkConfigParameter("type", "GeneralWaterVapourLatentHeat");
DBUG("Create GeneralWaterVapourLatentHeat phase property");
// Second access for storage.
//! \ogs_file_param{properties__property__name}
auto property_name = config.peekConfigParameter<std::string>("name");
//! \ogs_file_param_special{properties__property__GeneralWaterVapourLatentHeat}
return std::make_unique<GeneralWaterVapourLatentHeat>(
std::move(property_name));
}
} // namespace MaterialPropertyLib
/**
* \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 March 19, 2021, 11:51 AM
*/
#pragma once
#include <memory>
namespace BaseLib
{
class ConfigTree;
}
namespace MaterialPropertyLib
{
class Property;
std::unique_ptr<Property> createGeneralWaterVapourLatentHeat(
BaseLib::ConfigTree const& config);
} // namespace MaterialPropertyLib
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment