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

[MatL] MFront; Update for tfel-3.2.1.

The parameters seem to be strings only separated by
different types.
parent 3d3e0ea4
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,17 @@ void varInfo(std::string const& msg, ...@@ -33,6 +33,17 @@ void varInfo(std::string const& msg,
mgis::behaviour::getVariableOffset(vars, var.name, hypothesis)); mgis::behaviour::getVariableOffset(vars, var.name, hypothesis));
} }
} }
/// Prints info about MFront parameters.
void varInfo(std::string const& msg, std::vector<std::string> const& parameters)
{
INFO("#%s: %lu (array size %lu).", msg.c_str(), parameters.size());
// mgis::behaviour::getArraySize(vars, hypothesis));
for (auto const& parameter : parameters)
{
INFO(" --> with name `%s'.", parameter.c_str());
}
}
} // anonymous namespace } // anonymous namespace
namespace MaterialLib namespace MaterialLib
...@@ -101,7 +112,9 @@ std::unique_ptr<MechanicsBase<DisplacementDim>> createMFront( ...@@ -101,7 +112,9 @@ std::unique_ptr<MechanicsBase<DisplacementDim>> createMFront(
// TODO read parameters from prj file, not yet (2018-11-05) supported by // TODO read parameters from prj file, not yet (2018-11-05) supported by
// MGIS library. // MGIS library.
varInfo("Parameters", behaviour.parameters, hypothesis); varInfo("Real-valued parameters", behaviour.params);
varInfo("Integer parameters", behaviour.iparams);
varInfo("Unsigned parameters", behaviour.usparams);
std::vector<ParameterLib::Parameter<double> const*> material_properties; std::vector<ParameterLib::Parameter<double> const*> material_properties;
......
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