From ff2db99e041c2b3f48b6feb8b34144ce88005d90 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Thu, 21 Oct 2010 08:57:23 +0000 Subject: [PATCH] fix resize method for dynamic vector [[Imported from SVN: r6199]] --- dune/common/dynmatrix.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/dune/common/dynmatrix.hh b/dune/common/dynmatrix.hh index 6024ca632..0daf9a016 100644 --- a/dune/common/dynmatrix.hh +++ b/dune/common/dynmatrix.hh @@ -71,6 +71,7 @@ namespace Dune //==== resize related methods void resize (size_type r, size_type c, value_type v = value_type() ) { + _data.resize(0); _data.resize(r, row_type(c, v) ); } -- GitLab