-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dofhandler from CellCache #1049
Comments
I heavily rely on having access to the cellid (and grid) in the cell cache. However, I wanted to investigate the cell cache in more detail with my student soon, because we want to be able to use it on the GPU. My current suggestion is that the cell iterator has some prototype to derive the cache information from. My first sketch was essentially this
|
Just some worries about this, this might not be ideal for GPU, I mean because here you allocate the |
So you wouldn't be able to |
The idea is to actually eliminate the reinit and, instead of mutating, just generate a new CellCache struct from some prototype struct. |
Right, I was responding to the suggestion in the OP. I think it will be difficult to satisfy every need with a single struct. Perhaps we should just consider the existing CellCache to be directly coupled to the CellIterator. If you need something custom it is very easy to create your own struct and define method on it after all. |
Should we open an issue to document custom cellcache/iterator stuff? |
I find it a bit awkward that the
CellCache
holds the dofhandler and/or grid. Sometimes I have wanted to initialize and store aCellCache
at the initialization phase of my code, when the dofhandler has not been constructed yet. I think it makes more sense to move the dh/grid to theCellIterator
, and only store the current dofs,coords and nodes in theCellCache
:The text was updated successfully, but these errors were encountered: