Skip to content
Snippets Groups Projects
Commit 85a39576 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Out; Deprecate sec. vars. type attribute.

Update docu and make the attribute optional.
Issue a warning in case it is set.
parent 2b822558
No related branches found
No related tags found
No related merge requests found
The type of the secondary variable.
Can be <tt>static</tt> for secondary variables that don't need any further
information from the project file in order to be computed;
or <tt>dynamic</tt> if the functions providing some of the input data for
computing the secondary variable are set up at runtime.
Deprecated. This attribute is no longer used.
......@@ -37,7 +37,13 @@ void createSecondaryVariables(
{
auto const type =
//! \ogs_file_attr{prj__processes__process__secondary_variables__secondary_variable__type}
sec_var_config.getConfigAttribute<std::string>("type");
sec_var_config.getConfigAttributeOptional<std::string>("type");
if (type)
{
WARN(
"Secondary variable type specification is deprecated and is "
"ignored. All secondary variable types are 'static'.");
}
auto const internal_name =
//! \ogs_file_attr{prj__processes__process__secondary_variables__secondary_variable__internal_name}
......
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