How to get data structures necessary for assembly for the whole mesh?
Given a form, is it possible to get all the data structures necessary to assemble the system for all cells of the mesh at once (or at least a range of cells)?
Specifically, I would need the following for all cells of the mesh at once:
- shape functions on the reference element
- derivatives of shape functions on the reference element
- local-to-global mapping for vertex numbers
- coordinates of all vertices
- quadrature points
- quadrature weights
In my understanding, since the DOLFIN assembly loop uses the UFC interface, all the data is retrieved per cell. Is there any way to efficiently extract or construct these data structures without having to loop over all the cells? We want to do the assembly massively parallel (on the GPU) and hence eliminate the loop over the cells.
Access through the python interface (as a first step) would be the preferred if that is possible.
Any hints are highly appreciated,
Florian
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Florian Rathgeber for more information if necessary.