Revision 1a8392de8a8fa45dbdb1e2da1f525b9e9338d991 authored by wenqing on 12 July 2021, 08:14:46 UTC, committed by wenqing on 12 July 2021, 08:14:46 UTC
Changed the type of temperature reference to Parameter in the SmallDefomation project files Closes #3168 See merge request ogs/ogs!3702
CreateProperty.h
/**
* \file
* \author Norbert Grunwald
* \date Sep 7, 2017
*
* \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 <map>
#include <memory>
#include <optional>
#include <vector>
#include "PropertyType.h"
namespace BaseLib
{
class ConfigTree;
}
namespace ParameterLib
{
struct ParameterBase;
struct CoordinateSystem;
} // namespace ParameterLib
namespace MathLib
{
class PiecewiseLinearInterpolation;
}
namespace MaterialPropertyLib
{
class Property;
/// This data type is based on a std::array. It can hold pointers to objects of
/// class Property or its inheritors. The size of this array is determined by
/// the number of entries of the PropertyType enumerator.
using PropertyArray =
std::array<std::unique_ptr<Property>, PropertyType::number_of_properties>;
/// The method reads the 'properties' tag in the prj-file and creates component
/// properties accordingly.
///
/// First, a new property iy created based on the specified property type.
/// Then, the property name is evaluated and the property is copied into the
/// properties array.
std::unique_ptr<PropertyArray> createProperties(
int const geometry_dimension,
std::optional<BaseLib::ConfigTree> const& config,
std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const& parameters,
ParameterLib::CoordinateSystem const* const local_coordinate_system,
std::map<std::string,
std::unique_ptr<MathLib::PiecewiseLinearInterpolation>> const&
curves);
} // namespace MaterialPropertyLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...