# Tips and Tricks¶

Contents:

In construction…

## Efficient projection on DG or Quadrature spaces¶

For projecting a Function on a DG or Quadrature space, that is a space with no coupling between elements, the projection can be performed element-wise. For this purpose, using the LocalSolver is much faster than performing a global projection:

metadata={"quadrature_degree": deg}
def local_project(v,V):
dv = TrialFunction(V)
v_ = TestFunction(V)