[Dune-devel] dune-common update seems to cause error in my ParMetis routine
Markus Blatt
markus at dr-blatt.de
Fri Jan 22 12:07:24 CET 2016
Hi,
On Fri, Jan 22, 2016 at 11:55:31AM +0100, Aleksejs Fomins wrote:
> My Parmetis code, which used to compile before, includes the following lines:
>
> ------------------------------------------------------------------------------
> #if PARMETIS_MAJOR_VERSION < 4
> typedef idxtype idx_t;
> typedef float real_t;
> #endif
>
> std::vector<real_t> tpwgts(ncon*nparts, 1./nparts);
> ------------------------------------------------------------------------------
>
> With the latest pull of dune-common, I get the following error
>
> ------------------------------------------------------------------------------
> /home/fomins/gitwork/hades-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:1124:25: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
> std::vector<real_t> tpwgts(ncon*nparts, 1./nparts);
> ^
> /home/fomins/gitwork/hades-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:1124:25: note: expected a type, got ‘real_t’
> ------------------------------------------------------------------------------
>
> Would you be so kind as to suggest what caused this error and how to correct it?
The error message is pretty clear: The compiler does not know real_t
for whatever reason. What is it supposed to be?
Cheers,
Markus
--
Join us at the DUNE User Meeting Sept. 28-29, 2015, Heidelberg, Germany
http://users.dune-project.org/projects/dune-user-meeting-2015/wiki
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
More information about the Dune-devel
mailing list