From: Martin Kronbichler Date: Fri, 31 Jul 2015 06:46:02 +0000 (+0200) Subject: Fix warning from #1215 X-Git-Tag: v8.4.0-rc2~697^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f38af450b9cfb46971a7c5dba5f5c1d152a4b6;p=dealii.git Fix warning from #1215 --- diff --git a/source/lac/trilinos_sparsity_pattern.cc b/source/lac/trilinos_sparsity_pattern.cc index bd8acf2ff6..fa50f974d3 100644 --- a/source/lac/trilinos_sparsity_pattern.cc +++ b/source/lac/trilinos_sparsity_pattern.cc @@ -350,6 +350,7 @@ namespace TrilinosWrappers Assert(col_map.IsOneToOne(), ExcMessage("Column map must be 1-to-1, i.e., no overlap between " "the maps of different processors.")); + nonlocal_graph.reset(); graph.reset (); column_space_map.reset (new Epetra_Map (col_map)); @@ -437,6 +438,7 @@ namespace TrilinosWrappers std_cxx11::shared_ptr &graph, std_cxx11::shared_ptr &nonlocal_graph) { + nonlocal_graph.reset (); graph.reset (); AssertDimension (sp.n_rows(),