I ran into the following error when compiling Sunrise with MPI support:
---
icpc -DHAVE_CONFIG_H -I. -DMCRXVERSION="\"b8a774501657 default tip 2013-12-13\"" -I/project/projectdirs/agora/AGORA_PIPE_INSTALL/include -I/project/projectdirs/agora/AGORA_PIPE_INSTALL/include/libPJutil -I/opt/cray/mpt/6.2.0/gni/mpich2-intel/130/include -pthread -ggdb -O3 -MT libmcrx_a-mpi_util.o -MD -MP -MF .deps/libmcrx_a-mpi_util.Tpo -c -o libmcrx_a-mpi_util.o `test -f 'mpi_util.cc' || echo './'`mpi_util.cc
mpi_util.cc(260): error: identifier "partial_sum" is undefined
partial_sum(sizes.begin(), sizes.end(), sizes.begin());
^
---
Adding the following line to mpi_util.h solves the issue
#include <numeric>
Is that the right way to solve this? Do we want to use the partial_sum() defined in <numeric>?
Cheers,
Miguel