[Dune-devel] Validity of GridView after grid changes

Simon Praetorius simon.praetorius at tu-dresden.de
Thu Apr 10 18:19:52 CEST 2025


Hi everyone,

if I have a gridview, e.g. a leaf-gridview, of some grid and I modify 
the grid, e.g., do some grid adaption, what is the state of the gridview 
after this modification? What can we do with a gridview after the 
modification? As far as I was know (maybe this is documented somewhere), 
essentially the gridview is invalid, except for the reference to the 
grid. Is this statement correct?

Background to this question: Often I have stored just a gridview, in my 
application most of the time just the leaf gridview. If the underlying 
grid changes, how can I generate an updated gridview for these classes? 
The gridview does not know what kind of gridview it is and how it was 
constructed. Thus, it cannot request an update of itself. Examples of 
such classes that need to update their gridview are the MCMGMapper in 
dune-grid, the VtkWriter from dune-vtk, the global basis from 
dune-functions, and probably a lot more.

Several grids have gridviews that stay valid after grid modifications, 
e.g. those implemented with a GridDefaultImplementation using 
DefaultGridViewTraits. Is this, by chance, true for all grid managers? 
In which grid managers an operation on an invalidated gridview would 
fail (and why)?

Best,
Simon

-- 
Dr. Simon Praetorius
Technische Universität Dresden
Fakultät Mathematik
Institut für Wissenschaftliches Rechnen
Tel: TUD-34432
Web: tu-dresden.de/Members/simon.praetorius

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6022 bytes
Desc: Kryptografische S/MIME-Signatur
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20250410/4a633af2/attachment.bin>


More information about the Dune-devel mailing list