From db9d90bc767e6cbeffbbaa18093b474d89a8a71e Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Tue, 9 Jul 2019 15:59:30 +0200 Subject: [PATCH] [MatL] MFront; Update for tfel-3.2.1. The parameters seem to be strings only separated by different types. --- MaterialLib/SolidModels/MFront/CreateMFront.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/MaterialLib/SolidModels/MFront/CreateMFront.cpp b/MaterialLib/SolidModels/MFront/CreateMFront.cpp index a03a12349a5..8bfc0e88870 100644 --- a/MaterialLib/SolidModels/MFront/CreateMFront.cpp +++ b/MaterialLib/SolidModels/MFront/CreateMFront.cpp @@ -33,6 +33,17 @@ void varInfo(std::string const& msg, 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 namespace MaterialLib @@ -101,7 +112,9 @@ std::unique_ptr<MechanicsBase<DisplacementDim>> createMFront( // TODO read parameters from prj file, not yet (2018-11-05) supported by // 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; -- GitLab