diff --git a/dune/foamgrid/foamgrid/foamgridvertex.hh b/dune/foamgrid/foamgrid/foamgridvertex.hh index 706d6a40450c60d0afd565e2dbb4319ec280624f..44fe2d4d142c184caeb12e06e34d45276e9e43e6 100644 --- a/dune/foamgrid/foamgrid/foamgridvertex.hh +++ b/dune/foamgrid/foamgrid/foamgridvertex.hh @@ -123,7 +123,7 @@ namespace Dune { std::vector<const FoamGridEntityImp<dimgrid, dimgrid ,dimworld>*> elements_; //! A vertex array for compatibility reasons with edges. Calling results in undefined behaviour. - std::array<const FoamGridEntityImp<0, dimgrid ,dimworld>*, 1> vertex_; + std::array<const FoamGridEntityImp<0, dimgrid ,dimworld>*, 1> vertex_ = {{ nullptr }}; //! Boundary index if vertex is on boundary // only used if the vertex is a boundary vertex