]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove unused functions, clean up usage of explicit
authorTimo Heister <timo.heister@gmail.com>
Wed, 3 Jul 2013 23:13:31 +0000 (23:13 +0000)
committerTimo Heister <timo.heister@gmail.com>
Wed, 3 Jul 2013 23:13:31 +0000 (23:13 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29933 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector.h
deal.II/include/deal.II/lac/trilinos_vector_base.h
deal.II/source/lac/trilinos_vector_base.cc

index fac54aeba62008d069f22677857c7a96e17a735c..c8ea03e1a452946c4577cf2c886dee8f06e10699 100644 (file)
@@ -404,7 +404,7 @@ namespace TrilinosWrappers
        * this is all we need to
        * generate a parallel vector.
        */
-      Vector (const Epetra_Map &parallel_partitioning);
+      explicit Vector (const Epetra_Map &parallel_partitioning);
 
       /**
        * Copy constructor from the
@@ -417,7 +417,7 @@ namespace TrilinosWrappers
        * that sets the partitioning
        * details.
        */
-      explicit Vector (const Epetra_Map &parallel_partitioning,
+      Vector (const Epetra_Map &parallel_partitioning,
                        const VectorBase &v);
 
       /**
@@ -446,7 +446,7 @@ namespace TrilinosWrappers
        * elements.
        */
       template <typename Number>
-      explicit Vector (const Epetra_Map             &parallel_partitioning,
+      Vector (const Epetra_Map             &parallel_partitioning,
                        const dealii::Vector<Number> &v);
 //@}
       /**
@@ -463,7 +463,7 @@ namespace TrilinosWrappers
        * need to generate a %parallel
        * vector.
        */
-      Vector (const IndexSet &parallel_partitioning,
+      explicit Vector (const IndexSet &parallel_partitioning,
               const MPI_Comm &communicator = MPI_COMM_WORLD);
 
       /**
@@ -484,7 +484,7 @@ namespace TrilinosWrappers
        * communicator that set the
        * partitioning details.
        */
-      explicit Vector (const IndexSet   &parallel_partitioning,
+      Vector (const IndexSet   &parallel_partitioning,
                        const VectorBase &v,
                        const MPI_Comm   &communicator = MPI_COMM_WORLD);
 
@@ -495,7 +495,7 @@ namespace TrilinosWrappers
        * copies all the elements.
        */
       template <typename Number>
-      explicit Vector (const IndexSet               &parallel_partitioning,
+      Vector (const IndexSet               &parallel_partitioning,
                        const dealii::Vector<Number> &v,
                        const MPI_Comm               &communicator = MPI_COMM_WORLD);
 
@@ -663,7 +663,7 @@ namespace TrilinosWrappers
      * input the number of elements
      * in the vector.
      */
-    Vector (const size_type n);
+    explicit Vector (const size_type n);
 
     /**
      * This constructor takes as
@@ -677,7 +677,7 @@ namespace TrilinosWrappers
      * map will be generated
      * internally.
      */
-    Vector (const Epetra_Map &partitioning);
+    explicit Vector (const Epetra_Map &partitioning);
 
     /**
      * This constructor takes as input
@@ -690,19 +690,9 @@ namespace TrilinosWrappers
      * taken and a localized version will
      * be generated internally.
      */
-    Vector (const IndexSet &partitioning,
+    explicit Vector (const IndexSet &partitioning,
             const MPI_Comm &communicator = MPI_COMM_WORLD);
 
-    /**
-     * This constructor creates a vector
-     * using the IndexSet local as our
-     * own unknowns, add optional ghost
-     * values ghost.
-     */
-    Vector (const MPI_Comm &communicator,
-            const IndexSet &local,
-            const IndexSet &ghost);
-
     /**
      * This constructor takes a
      * (possibly parallel) Trilinos
@@ -768,8 +758,6 @@ namespace TrilinosWrappers
                  const MPI_Comm   &communicator = MPI_COMM_WORLD,
                  const bool        fast = false);
 
-
-
     /**
      * Reinit function. Takes the
      * information of a Vector and copies
@@ -780,7 +768,6 @@ namespace TrilinosWrappers
                  const bool        fast = false,
                  const bool        allow_different_maps = false);
 
-
     /**
      * Set all components of the
      * vector to the given number @p
index fc257d10163de449e6878a5adc590dd8248eaaa3..69a0457bc8f86fec2d302bebe26d5eea725a0389 100644 (file)
@@ -935,14 +935,6 @@ namespace TrilinosWrappers
      */
     void ratio (const VectorBase &a,
                 const VectorBase &b);
-
-
-    /**
-     * Empty function; added to allow
-     * PETSc and Trilinos Vectors to
-     * be used interchangeably
-     */
-    void update_ghost_values() const;
     //@}
 
 
@@ -1034,7 +1026,6 @@ namespace TrilinosWrappers
     std::size_t memory_consumption () const;
     //@}
 
-
     /**
      * Exception
      */
index 17e2b41c0c00481148cd46f04f6e1a7dcf9e9a76..c2695901eea87657787dfa8f1306130244d2f692 100644 (file)
@@ -450,11 +450,6 @@ namespace TrilinosWrappers
                sizeof(TrilinosWrappers::types::int_type) );
   }
 
-  void
-  VectorBase::update_ghost_values() const
-  {
-  }
-
 } /* end of namespace TrilinosWrappers */
 
 

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.