]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make zero_out_ghosts() const 6198/head
authorDenis Davydov <davydden@gmail.com>
Sat, 7 Apr 2018 17:54:23 +0000 (19:54 +0200)
committerDenis Davydov <davydden@gmail.com>
Sat, 7 Apr 2018 18:03:05 +0000 (20:03 +0200)
include/deal.II/lac/la_parallel_block_vector.h
include/deal.II/lac/la_parallel_block_vector.templates.h
include/deal.II/lac/la_parallel_vector.h
include/deal.II/lac/la_parallel_vector.templates.h

index f9f20a82fed88c6a5bad70823d48a34ecaa19c1a..3a46a9fe458689d227f1ef6fb35998609803d8ef 100644 (file)
@@ -331,7 +331,7 @@ namespace LinearAlgebra
        * vector is forbidden and an exception is thrown. Only write access to
        * ghost elements is allowed in this state.
        */
-      void zero_out_ghosts ();
+      void zero_out_ghosts () const;
 
       /**
        * Return if this Vector contains ghost elements.
index 368b9b0d13a71dd920668277d1af66f7c6cd74b6..ef82385da7bb050b5337f1f7fce07daf5557dfcf 100644 (file)
@@ -285,7 +285,7 @@ namespace LinearAlgebra
 
     template <typename Number>
     void
-    BlockVector<Number>::zero_out_ghosts ()
+    BlockVector<Number>::zero_out_ghosts () const
     {
       for (unsigned int block=0; block<this->n_blocks(); ++block)
         this->block(block).zero_out_ghosts();
index 00179449cf5c00f56c6519661a4156e004d9a351..fa34a731752b7d08bad169210ca879888f122e87 100644 (file)
@@ -501,7 +501,7 @@ namespace LinearAlgebra
        * vector is forbidden and an exception is thrown. Only write access to
        * ghost elements is allowed in this state.
        */
-      void zero_out_ghosts ();
+      void zero_out_ghosts () const;
 
       /**
        * Return whether the vector currently is in a state where ghost values
index d9ba0a662189800368f4b288614ea05f08db5ef3..9bf8c0afa426bca7e4c9e58bda74e0356b5dfe2b 100644 (file)
@@ -515,7 +515,7 @@ namespace LinearAlgebra
 
     template <typename Number>
     void
-    Vector<Number>::zero_out_ghosts ()
+    Vector<Number>::zero_out_ghosts () const
     {
       std::fill_n (&values[partitioner->local_size()],
                    partitioner->n_ghost_indices(),

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.