Skip to content
Snippets Groups Projects
Commit abc55d3b authored by wenqing's avatar wenqing
Browse files

[MPL] Added createWaterVapourLatentHeat

parent 18e3f986
No related branches found
No related tags found
No related merge requests found
/**
* \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 16, 2021, 10:13 AM
*/
#include "CreateWaterVapourLatentHeat.h"
#include "BaseLib/ConfigTree.h"
#include "MaterialLib/MPL/Property.h"
#include "WaterVapourLatentHeat.h"
namespace MaterialPropertyLib
{
std::unique_ptr<Property> createWaterVapourLatentHeat(
BaseLib::ConfigTree const& config)
{
//! \ogs_file_param{properties__property__type}
config.checkConfigParameter("type", "WaterVapourLatentHeat");
DBUG("Create WaterVapourLatentHeat medium 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__WaterVapourLatentHeat}
return std::make_unique<WaterVapourLatentHeat>(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 16, 2021, 10:13 AM
*/
#pragma once
#include <memory>
namespace BaseLib
{
class ConfigTree;
}
namespace MaterialPropertyLib
{
class Property;
std::unique_ptr<Property> createWaterVapourLatentHeat(
BaseLib::ConfigTree const& config);
} // namespace MaterialPropertyLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment