]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change style of array access 6404/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 30 Apr 2018 23:24:30 +0000 (01:24 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 30 Apr 2018 23:24:30 +0000 (01:24 +0200)
include/deal.II/lac/la_parallel_vector.templates.h

index fd40922872713ef9bc4827292d1038b67b0bee1c..3cb3b2036ca9d48814cf956298dfbbd5e1524308 100644 (file)
@@ -518,7 +518,7 @@ namespace LinearAlgebra
     Vector<Number>::zero_out_ghosts () const
     {
       if (values != nullptr)
-        std::fill_n (&values[partitioner->local_size()],
+        std::fill_n (values.get()+partitioner->local_size(),
                      partitioner->n_ghost_indices(),
                      Number());
       vector_is_ghosted = false;

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.