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

#1193 Solid: fix a bug: one must checks whether ALL solid parameters are set...

#1193 Solid: fix a bug: one must checks whether ALL solid parameters are set in the input parameter file.

[WARNING] The models with a Solid involve might not compile!
parent 529e9ace
......@@ -24,7 +24,11 @@ namespace HappyHeart
template<class InputParameterDataT, class T>
constexpr bool IsDefined()
{
return (Utilities::Tuple::IndexOf<T, typename InputParameterDataT::Tuple>::value != NumericNS::UninitializedIndex<unsigned int>());
if (Utilities::Tuple::IndexOf<T, typename InputParameterDataT::Tuple>::value != NumericNS::UninitializedIndex<unsigned int>())
return true;
// If InputParameter::Solid is defined, ALL parameters are defined and true should be returned!
return (Utilities::Tuple::IndexOf<InputParameter::Solid, typename InputParameterDataT::Tuple>::value != NumericNS::UninitializedIndex<unsigned int>());
}
......@@ -89,6 +93,8 @@ namespace HappyHeart
domain,
input_parameter_data);
assert(!(!std::get<0>(kappa_list_)));
std::get<1>(kappa_list_) =
InitScalarParameterFromInputData<InputParameter::Solid::Kappa2>("Kappa_2",
domain,
......
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