Hi Markus, The dune-cornerpoint (CpGrid) grid class does not support entities of codimensions other than 0 or "dim". In principle the grid *could* support codimension 1 entities (these things exist within the grid implementation), but as I said it currently does not.
Is there a way of informing the user (client code) that CpGrid comes with this restriction? If not, I suppose throwing an exception is one workable solution. Best regards, Bård ________________________________________ From: Opm [opm-boun...@opm-project.org] on behalf of Markus Blatt [mar...@dr-blatt.de] Sent: 20 January 2014 20:19 To: opm@opm-project.org Subject: [OPM] Ids in dune-cornerpoint grid Hi, I noticed some issue in the IdSet of dune-cornerpoint grid. It is possible to query the id of elements of any codimension. Unfortunately, due to the implementation two entities of codim_1<3, and codim_2<3 with codim_1!=codim_2 might have the same id. This does not adhere to the DUNE interface and might come as quite a surprise. Basically, the problem is that entities of codimension c, 0<c<3, are not fully supported by dune-cornerpoint (and therefore neglected in the algorithm to compute the id). Either we correctly compute unique ids for these entities or we at least throw an exception if someone tries to access ids of these entities. Cheers, Markus _______________________________________________ Opm mailing list Opm@opm-project.org http://www.opm-project.org/mailman/listinfo/opm