Skip to content

Commit

Permalink
[dev_tutorial] Addressed the following comment:
Browse files Browse the repository at this point in the history
"One can use a number of integration points different from the number
of shape functions. It will help to see which is the axis for points
and which for local dofs."
  • Loading branch information
amartinhuertas committed Mar 11, 2021
1 parent b97ecd3 commit ed76c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poisson_dev_fe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Uₕ = TrialFESpace(Vₕ,u)

# ## The `CellDatum` abstract type and (some of) its subtypes

# We also want to extract the triangulation out of the model and create a numerical quadrature.
# We also want to extract the triangulation out of the model and create a numerical quadrature. We use a quadrature rule with a higher number integration points than those strictly needed to integrate a mass matrix exactly, i.e., `4*order`, instead of `2*order` We do so in order to help the reader distinguish the axis used for quadrature points, and the one used for DoFs in multi-dimensional arrays, which contain the result of evaluating fields (or a differential operator acting on these) in a set of quadrature rule evaluation points.
Tₕ = Triangulation(model)
Qₕ = CellQuadrature(Tₕ,2*order)
Qₕ = CellQuadrature(Tₕ,4*order)

# Qₕ is an instance of type `CellQuadrature`, a subtype of the `CellDatum` abstract data type.

Expand Down

0 comments on commit ed76c33

Please sign in to comment.