]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function PETScWrappers::VectorBase::update_ghost_values.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 3 Feb 2015 03:44:32 +0000 (21:44 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 3 Feb 2015 03:44:32 +0000 (21:44 -0600)
doc/news/changes.h
include/deal.II/lac/petsc_vector_base.h
source/lac/petsc_parallel_vector.cc
source/lac/petsc_vector_base.cc
tests/mpi/ghost_01.cc
tests/petsc/copy_to_dealvec.cc

index 0a3a1b3952e44717b70529e6fa9a1083e7e6a3e9..7a1a89e60e6a7ac2aeffad4149b0059b5cf2de8b 100644 (file)
@@ -170,7 +170,8 @@ inconvenience this causes.
     function that takes a scalar as argument.
   - PreconditionBlock::size.
   - Classes PreconditionedMatrix and PreconditionLACSolver.
-  - PETScVectors::MPI::Vector constructors and reinit() variants.
+  - PETScWrappers::VectorBase::update_ghost_values.
+  - PETScWrappers::MPI::Vector constructors and reinit variants.
   - SparseMatrixIterators::Accessor and SparseMatrixIterators::Iterator
     constructors.
   - SparseMatrix::raw_entry.
index 92ff40e7598568f5f77d856cd5f4db98749dabbf..56c4286f8ed374b91336e5eaf5f8a5fc7fa92f6a 100644 (file)
@@ -660,16 +660,6 @@ namespace PETScWrappers
     void ratio (const VectorBase &a,
                 const VectorBase &b);
 
-    /**
-     * Updates the ghost values of this vector. As ghosted vectors are now
-     * read-only and assignments from a non-ghosted vector update the ghost
-     * values automatically, this method does not need to be called in user
-     * code.
-     * @deprecated: calling this method is no longer necessary.
-     */
-    void update_ghost_values() const DEAL_II_DEPRECATED;
-
-
     /**
      * Prints the PETSc vector object values using PETSc internal vector
      * viewer function <tt>VecView</tt>. The default format prints the
index 301f7c0e1663a3f41311d86933603fe8302a3bd6..cd9155941a26ba708731b57b144e503c7a7918b0 100644 (file)
@@ -237,7 +237,12 @@ namespace PETScWrappers
       AssertThrow (ierr == 0, ExcPETScError(ierr));
 
       if (has_ghost_elements())
-        update_ghost_values();
+        {
+          ierr = VecGhostUpdateBegin(vector, INSERT_VALUES, SCATTER_FORWARD);
+          AssertThrow (ierr == 0, ExcPETScError(ierr));
+          ierr = VecGhostUpdateEnd(vector, INSERT_VALUES, SCATTER_FORWARD);
+          AssertThrow (ierr == 0, ExcPETScError(ierr));
+        }
       return *this;
     }
 
index a0ca931815602cc4c85bfcc10780319b162000d2..a3ee01e88d5067d3b0d2935edd59ec6238bf2b83 100644 (file)
@@ -1152,25 +1152,6 @@ namespace PETScWrappers
     last_action = action;
   }
 
-
-  void
-  VectorBase::update_ghost_values() const
-  {
-    // generate an error for not ghosted
-    // vectors
-    if (!ghosted)
-      AssertThrow (false, ExcInternalError());
-
-    int ierr;
-
-    ierr = VecGhostUpdateBegin(vector, INSERT_VALUES, SCATTER_FORWARD);
-    AssertThrow (ierr == 0, ExcPETScError(ierr));
-    ierr = VecGhostUpdateEnd(vector, INSERT_VALUES, SCATTER_FORWARD);
-    AssertThrow (ierr == 0, ExcPETScError(ierr));
-  }
-
-
-
 }
 
 DEAL_II_NAMESPACE_CLOSE
index 5b722aa7c798de3c1acbc1245d33771110f8cb82..82037279cc3be719cb315acb409a71e913283eeb 100644 (file)
@@ -52,7 +52,6 @@ void test ()
   vb.compress(VectorOperation::insert);
   vb*=2.0;
   v=vb;
-  //v.update_ghost_values();
 
   Assert(!vb.has_ghost_elements(), ExcInternalError());
   Assert(v.has_ghost_elements(), ExcInternalError());
index 2fbc88f3660beb355df5966b1670517c8faef758..ec922fd49f69b68573ff958689e37ad83cb1c17a 100644 (file)
@@ -55,7 +55,6 @@ void test ()
   vb.compress(VectorOperation::insert);
   vb*=2.0;
   v=vb;
-  //v.update_ghost_values();
 
   Assert(!vb.has_ghost_elements(), ExcInternalError());
   Assert(v.has_ghost_elements(), ExcInternalError());

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.