]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also free vector memory from deal.II's own parallel vectors.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 9 Feb 2014 19:21:02 +0000 (19:21 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 9 Feb 2014 19:21:02 +0000 (19:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@32440 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/mpi.cc

index 97a7c89b66d5905d71f945a972880f9fd4dc8614..df1d36039366e5b262076b97e66acba2cc608eb4 100644 (file)
@@ -19,6 +19,8 @@
 #include <deal.II/base/utilities.h>
 #include <deal.II/base/exceptions.h>
 #include <deal.II/lac/vector_memory.h>
+#include <deal.II/lac/parallel_vector.h>
+#include <deal.II/lac/parallel_block_vector.h>
 #include <deal.II/base/multithread_info.h>
 
 #include <cstddef>
@@ -401,8 +403,18 @@ namespace Utilities
       // to errors
 
 #ifdef DEAL_II_WITH_MPI
-      // Start with Trilinos (need to do this before finalizing PETSc because it finalizes MPI.
-      // Delete vectors from the pools:
+      // Start with the deal.II MPI vectors (need to do this before finalizing
+      // PETSc because it finalizes MPI).  Delete vectors from the pools:
+      GrowingVectorMemory<parallel::distributed::Vector<double> >
+      ::release_unused_memory ();
+      GrowingVectorMemory<parallel::distributed::BlockVector<double> >
+      ::release_unused_memory ();
+      GrowingVectorMemory<parallel::distributed::Vector<float> >
+      ::release_unused_memory ();
+      GrowingVectorMemory<parallel::distributed::BlockVector<float> >
+      ::release_unused_memory ();
+
+      // Next with Trilinos:
 #  if defined(DEAL_II_WITH_TRILINOS)
       GrowingVectorMemory<TrilinosWrappers::MPI::Vector>
       ::release_unused_memory ();

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.