Skip to content
Snippets Groups Projects
Commit ef922861 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed zero-initialization in the getEntityCenter function

parent 5d977a19
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ getEntityCenter( const Mesh< MeshConfig, Device > & mesh, ...@@ -51,7 +51,7 @@ getEntityCenter( const Mesh< MeshConfig, Device > & mesh,
{ {
using EntityType = MeshEntity< MeshConfig, Device, EntityTopology >; using EntityType = MeshEntity< MeshConfig, Device, EntityTopology >;
constexpr typename MeshConfig::LocalIndexType subvertices = EntityType::template getSubentitiesCount< 0 >(); constexpr typename MeshConfig::LocalIndexType subvertices = EntityType::template getSubentitiesCount< 0 >();
typename MeshTraits< MeshConfig >::PointType c{ 0.0 }; typename MeshTraits< MeshConfig >::PointType c = 0;
for( typename MeshConfig::LocalIndexType i = 0; for( typename MeshConfig::LocalIndexType i = 0;
i < subvertices; i < subvertices;
i++ ) i++ )
......
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