Skip to content
Snippets Groups Projects
Commit d4e0e313 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Norbert Grunwald
Browse files

[MPL] peek property type. Check in create* methods

parent d1a9b00f
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty( ...@@ -34,7 +34,7 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
using namespace MaterialPropertyLib; using namespace MaterialPropertyLib;
// Parsing the property type: // Parsing the property type:
//! \ogs_file_param{properties__property__type} //! \ogs_file_param{properties__property__type}
auto const property_type = config.getConfigParameter<std::string>("type"); auto const property_type = config.peekConfigParameter<std::string>("type");
// If (and only if) the given property type is 'constant', a corresponding // If (and only if) the given property type is 'constant', a corresponding
// value is needed. // value is needed.
......
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