Commit 4520d192 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1049 Parameter: use the domain to add a consistency check. in debug mode.

parent 4aff506c
......@@ -98,6 +98,9 @@ namespace HappyHeart
inline typename Parameter<TypeT, TimeDependencyT>::return_type Parameter<TypeT, TimeDependencyT>
::GetValue(const QuadraturePoint& quad_pt, const GeometricElt& geom_elt) const
{
assert(GetDomain().IsGeometricEltInside(geom_elt) && "Attempt to use a Parameter outside of its domain "
"definition.");
if (IsConstant())
return GetConstantValue(); // ApplyTimeDependancyFactor not called here because it is already applied within
// GetConstantValue().
......
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