]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove a TODO that no longer applies. Minor indentation changes.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 21 Nov 2012 21:59:45 +0000 (21:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 21 Nov 2012 21:59:45 +0000 (21:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@27665 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/mpi.cc

index 7c25a2d82d21bd4188b7d8cfbb3e3f8339253356..0ed894db31a1751ce50185f9633124384798f29b 100644 (file)
@@ -14,6 +14,7 @@
 #include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 #include <deal.II/base/exceptions.h>
+#include <deal.II/lac/vector_memory.h>
 
 #include <cstddef>
 #include <iostream>
 #ifdef DEAL_II_USE_PETSC
 #  ifdef DEAL_II_COMPILER_SUPPORTS_MPI
 #    include <petscsys.h>
-#include <deal.II/lac/vector_memory.h>
-#include <deal.II/lac/petsc_block_vector.h>
-#include <deal.II/lac/petsc_parallel_block_vector.h>
-#include <deal.II/lac/petsc_vector.h>
-#include <deal.II/lac/petsc_parallel_vector.h>
+#    include <deal.II/lac/petsc_block_vector.h>
+#    include <deal.II/lac/petsc_parallel_block_vector.h>
+#    include <deal.II/lac/petsc_vector.h>
+#    include <deal.II/lac/petsc_parallel_vector.h>
 #  endif
 #endif
 
@@ -344,27 +344,12 @@ namespace Utilities
     {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
 
-      // make memory pool release all
-      // vectors that are no longer
-      // used at this point. this is
-      // relevant because the static
-      // object destructors run for
-      // these vectors at the end of
-      // the program would run after
-      // MPI_Finalize is called,
-      // leading to errors
-      //
-#  if defined(DEAL_II_USE_TRILINOS) && !defined(__APPLE__)
-      // TODO: On Mac OS X, shared libs can
-      // only depend on other libs listed
-      // later on the command line. This
-      // means that libbase can't depend on
-      // liblac, and we can't destroy the
-      // memory pool here as long as we have
-      // separate libraries. Consequently,
-      // the #ifdef above. Deal will then
-      // just continue to seg fault upon
-      // completion of main()
+      // make memory pool release all MPI-based vectors that are no
+      // longer used at this point. this is relevant because the
+      // static object destructors run for these vectors at the end of
+      // the program would run after MPI_Finalize is called, leading
+      // to errors
+#  if defined(DEAL_II_USE_TRILINOS)
       GrowingVectorMemory<TrilinosWrappers::MPI::Vector>
       ::release_unused_memory ();
       GrowingVectorMemory<TrilinosWrappers::MPI::BlockVector>

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.