]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix: 'iota' is not a member of 'std' 7269/head
authormwichro <32612987+mwichro@users.noreply.github.com>
Thu, 6 Sep 2018 15:28:03 +0000 (17:28 +0200)
committerDavid Wells <drwells@email.unc.edu>
Thu, 4 Oct 2018 15:11:10 +0000 (11:11 -0400)
Fixes GCC compilation error:
 /source/base/mpi.cc:129:7: error: 'iota' is not a member of 'std'
That appears on newer gcc

source/base/mpi.cc

index e72a175764c715649f4e99446dc2d0300c514554..38e8122f10ed26fb5166362beba978bc590a2419 100644 (file)
@@ -23,6 +23,7 @@
 #include <deal.II/lac/la_parallel_block_vector.h>
 #include <deal.II/base/multithread_info.h>
 
+#include <numeric> 
 #include <iostream>
 
 #ifdef DEAL_II_WITH_TRILINOS

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.