]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix: 'iota' is not a member of 'std'
authormwichro <32612987+mwichro@users.noreply.github.com>
Thu, 6 Sep 2018 15:28:03 +0000 (17:28 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Sep 2018 15:28:03 +0000 (17:28 +0200)
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 b7fa8393c274635c575008882c4d168e9820915d..8e952529ae09f47d70748bea76bc73841a8abcf9 100644 (file)
@@ -24,6 +24,7 @@
 #include <deal.II/lac/la_parallel_vector.h>
 #include <deal.II/lac/vector_memory.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.