Commit de635152 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#859 Cosmetics + remove debug lines.

parent fc27a377
......@@ -240,18 +240,19 @@ namespace MoReFEM
return *ptr;
}
inline const Solid::scalar_parameter& Solid::GetYoungModulus() const
{
if (!IsYoungModulus())
throw SolidNS::UndefinedData("YoungModulus", __FILE__, __LINE__);
decltype(auto) ptr = std::get<0>(young_poisson_);
assert(!(!ptr));
return *ptr;
}
inline const Solid::scalar_parameter& Solid::GetPoissonRatio() const
{
if (!IsPoissonRatio())
......@@ -292,6 +293,7 @@ namespace MoReFEM
return *ptr;
}
inline const Solid::scalar_parameter& Solid::GetMu2() const
{
if (!IsMu2())
......@@ -346,6 +348,7 @@ namespace MoReFEM
return *ptr;
}
inline const Solid::scalar_parameter& Solid::GetViscosity() const
{
if (!IsViscosity())
......
......@@ -24,22 +24,18 @@ namespace MoReFEM
InitializeTestMoReFEMData<InputParameterListT>
::InitializeTestMoReFEMData(std::string&& lua_file)
{
std::cout << "IMD 0" << std::endl;
decltype(auto) environment = Utilities::Environment::CreateOrGetInstance(__FILE__, __LINE__);
std::cout << "IMD 10" << std::endl;
decltype(auto) input_file =
environment.SubstituteValues(lua_file);
std::cout << "IMD 02" << std::endl;
char program_name[] = "ProgramName";
char option[] = "-i";
char* input_file_char = const_cast<char*>(input_file.c_str());
char* dummy_args[] = { program_name, option, input_file_char, nullptr };
std::cout << "IMD 30" << std::endl;
argv_ = dummy_args;
std::cout << "IMD 40" << std::endl;
morefem_data_ = std::make_unique<morefem_data_type>(3, argv_);
std::cout << "IMD 50" << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment