#296 GridPart default partition type inconsistent with grid
Metadata
| Property | Value |
|---|---|
| Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
| Reported at | May 21, 2007 14:38 |
| 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 | Oct 7, 2008 20:14 |
| Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
| Closed at | Oct 7, 2008 20:14 |
| Closed in version | Unknown |
| Resolution | Fixed |
| Comment | GridParts are deprecated, GridViews work as expected. |
Description
When calling the method lbegin of a grid, the second template parameter defaults to All_Partition. When the corresponding method of a GridPart is called, the default is Interior_Partition. While both choices seem reasonable (to me), the inconsistency leads to some minor surprises. For example, the following test case does not compile.
#include <config.h>
#include <dune/grid/onedgrid.hh> #include <dune/grid/common/gridpart.hh>
int main () {
typedef Dune::OneDGrid GridType;
GridType grid(0,1,10);
typedef Dune::LevelGridPart<const GridType> GridPartType;
GridPartType::Traits::Codim<0>::IteratorType iterator = grid.lbegin<0>(0);
}