Skip to content

#140 DGFParser does not work with Lam-mpi

Metadata

Property Value
Reported by Markus Blatt (markus@dr-blatt.de)
Reported at Jul 7, 2006 10:02
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Christian Engwer (christi@conan.iwr.uni-heidelberg.de)
Last edited at Jul 24, 2006 14:39
Closed by Markus Blatt (markus@dr-blatt.de)
Closed at Jul 27, 2006 09:53
Closed in version 1.0
Resolution Fixed
Comment Just compiled the tests with lam

Description

It seems like the dgf parser silently assumes that MPI_Comm is convertible to an int.

This is true for mpich where MPI_Comm is just a pointer. Unfortunately this is be no means supported by the standard. MPI_Datatype might as well be a class or a struct like in lam-mpi.

The attached code crashed with lam-mpi:

complexity.cc:12: error: invalid conversion from '_comm*' to 'int' complexity.cc:12: error: initializing argument 2 of 'Dune::GridPtr::GridPtr(const char*, int) [with GridType = Dune::YaspGrid<2, 2>]' complexity.cc:13: error: invalid conversion from '_comm*' to 'int' complexity.cc:13: error: initializing argument 2 of 'Dune::GridPtr::GridPtr(const char*, int) [with GridType = Dune::YaspGrid<3, 3>]' complexity.cc:14: error: invalid conversion from '_comm*' to 'int' complexity.cc:14: error: initializing argument 2 of 'Dune::GridPtr::GridPtr(const char*, int) [with GridType = Dune::AlbertaGrid<2, 2>]' complexity.cc:15: error: invalid conversion from '_comm*' to 'int' complexity.cc:15: error: initializing argument 2 of 'Dune::GridPtr::GridPtr(const char*, int) [with GridType = Dune::AlbertaGrid<3, 3>]'

Attachments