]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning from #1215
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 31 Jul 2015 06:46:02 +0000 (08:46 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 31 Jul 2015 06:46:02 +0000 (08:46 +0200)
source/lac/trilinos_sparsity_pattern.cc

index bd8acf2ff6e71b16801574dde1d193e7273e8117..fa50f974d39c7f2e435d8dafebb2cf42e4ee873f 100644 (file)
@@ -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<Epetra_FECrsGraph> &graph,
                std_cxx11::shared_ptr<Epetra_CrsGraph>   &nonlocal_graph)
     {
+      nonlocal_graph.reset ();
       graph.reset ();
 
       AssertDimension (sp.n_rows(),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.