[Dune] get cell from index?

Gregor Corbin corbin at mathematik.uni-kl.de
Fri Aug 25 14:44:09 CEST 2017


Hi,

when I have a mapper (e.g. SCSG) of a GridView, is it possible to get a 
cell from an index?

To ask differently, if i do this:

     int idx = mapper.index(cell);

can i go back like this:

     auto cell = (elements(grid_view))[idx];

?


Cheers and thanks for your help,

Gregor





More information about the Dune mailing list