Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit 63c54618 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1229 Solid: a negative tolerance now cancels the check that solid parameters...

#1229 Solid: a negative tolerance now cancels the check that solid parameters are consistant with each other. Useful for some tests; should be avoided for genuine models.
parent 78f60367
......@@ -86,7 +86,7 @@ namespace MoReFEM
* \param[in] relative_tolerance Relative tolerance acceptable between a parameter and its
* recomputation (for instance Young modulus read agains Young modulus recomputed from Lame parameters).
* If they are not deemed exactly equal but close enough, a warning is printed
* rather than an exception thrown.
* rather than an exception thrown. If a negative value is provided, skip entirely those checks.
* \copydoc doxygen_hide_input_parameter_data_arg
* \copydoc doxygen_hide_quadrature_rule_per_topology_arg
* \param[in] domain Mesh upon which the solid \a Parameter are defined.
......
......@@ -155,7 +155,8 @@ namespace MoReFEM
input_parameter_data);
}
CheckConsistency(relative_tolerance);
if (relative_tolerance >= 0.)
CheckConsistency(relative_tolerance);
}
......
......@@ -622,7 +622,7 @@ namespace MoReFEM
solid_ = std::make_unique<Solid>(input_parameter_data,
domain_volume,
felt_space_volume_displacement.GetQuadratureRulePerTopology(),
1.e50); // Big tolerance to avoid CheckConsistancy issues.
-1.); // Negative tolerance to cancel CheckConsistancy issues.
hyperelastic_law_parent::Create(*solid_);
......
......@@ -64,7 +64,7 @@ namespace MoReFEM
solid_ = std::make_unique<Solid>(input_parameter_data,
domain_volume,
felt_space.GetQuadratureRulePerTopology(),
1.e50); // Big tolerance to avoid CheckConsistancy issues.
-1.); // Negative to cancel CheckConsistancy issues.
hyperelastic_law_parent::Create(*solid_);
......
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