#690 parallel UGGrid can not read DGF
Metadata
Property | Value |
---|---|
Reported by | Bernd Flemisch (bernd@iws.uni-stuttgart.de) |
Reported at | Dec 10, 2009 20:00 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Last edited at | Apr 20, 2010 09:37 |
Closed by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Closed at | Apr 20, 2010 09:37 |
Closed in version | 2.0 |
Resolution | Fixed |
Comment | in revision 6618 the check for rank > 0 is gone |
Description
If the attached test is run on two processes by mpirun -np 2 ./test_dgf, it throws Dune reported error: DGFException [generate:/temp/bernd/DUMUX/dune-grid/dune/grid/io/file/dgfparser/dgfug.cc:21]: Macrofile test.dgf is for dimension -1 and cannot be used to initialize an UGGrid of dimension 2
I think that line 14 of dgfug.cc should be changed to if(mg.readDuneGrid(gridin, dim, dim))
If I do that, it throws later Dune reported error: GridError [createGrid:uggridfactory.cc:221]: Couldn't extract grid boundary. That should be from the process which does not get any elements at first.
Commenting lines 220/221 in uggridfactory.cc results in throwing from line 418 in the same file, and I do not dare to go further from there.
Anyway, with revision 6025, everything works fine. The problem appears first in revision 6035. Between 6026 and 6034, I cannot compile it at all, so I cannot say which commit causes the bug.