Comments (3)
I'm thinking along the lines of a common signature for tabulate_tensor
as suggested in #15 - an interface that takes an array of quadrature points on the reference element.
We could make it possible to attach a 'quadrature' function to a form - this would give a lot of freedom in picking quadrature points. We want to focus on passing functions because it maps well onto using JIT tools like Numba, cffi, pyopnencl, etc.
from dolfinx.
I think a callback interface, as you suggest, would be great. How would that work? Would such a 'quadrature' function have access to data living in Python, or would it work with data supplied to it in the assembly process? Maybe both?
For instance would the interface be like
def generate_quadrature_rule(element):
....
L = u*dc(quadrature_rule=generate_quadrature_rule)
or would it be more like a C++ function defined at compile time that would be called during assembly?
from dolfinx.
I guess this question should be revisited now, as we currently have basix that can tabulate at runtime. @mscroggs, @garth-wells any ideas?
from dolfinx.
Related Issues (20)
- Remove non-overlapping `IndexMap` constructor
- Expose looped versions of dof_transformations HOT 2
- 2D XDMFFile vector output broken HOT 1
- Add `transfer_meshtags_to_submesh`
- Submesh creation fails on 6 processes with ghostmode shared facet HOT 3
- Codim 0 mixed assembly: Spatial coordinate without constant/coefficient HOT 2
- NBX should be removed from sub index map creation HOT 2
- [BUG]: fenics-basix HOT 6
- Submesh form with derivative does not compile
- Refactor Python wrapper method `la.Vector.norm` into function
- Non-matching interpolation uses wrong size for computing extrapolation
- Use pure UFL/basix.ufl forms in compilation in DOLFINx Python interface HOT 4
- `dolfinx::fem::create_form` does not support entity-maps
- [BUG]: `test_assemble_domains` segfaults on 6 processes HOT 2
- Lagrange Multiplier for the Poisson equation with pure Neumann boundary conditions HOT 10
- Parallel marking algorithm
- Dockerfiles should use pyproject.toml to install optional dependencies HOT 4
- interpolate of symmetric tensor is broken HOT 4
- Add communication graph measures and output that can be visualised
- Update dof transformation function names to match Basix HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dolfinx.