Skip to content
Snippets Groups Projects
Commit fd341183 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed bug in Functions::MeshFunction::setValue.

parent 1b38e2b0
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,7 @@ MeshFunction< Mesh, MeshEntityDimension, Real >::
getValue( const EntityType& meshEntity ) const
{
static_assert( EntityType::getEntityDimension() == MeshEntityDimension, "Calling with wrong EntityType -- entity dimensions do not match." );
return this->data.getValue( meshEntity.getIndex() );
return this->data.getElement( meshEntity.getIndex() );
}
template< typename Mesh,
......@@ -325,7 +325,7 @@ setValue( const EntityType& meshEntity,
const RealType& value )
{
static_assert( EntityType::getEntityDimension() == MeshEntityDimension, "Calling with wrong EntityType -- entity dimensions do not match." );
this->data.setValue( meshEntity.getIndex(), value );
this->data.setElement( meshEntity.getIndex(), value );
}
template< typename Mesh,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment