Quadrature options using type dispatch#8
Merged
Conversation
…` to create quadrature options chosen by type dispatch.
…` where the integration range on the element is permitted to be different from the normal `[-1,1]` (reference coords) `[c - s, c + s]` (physical coordinates). We supply the minimum and maximum limits to be used through `GLSpecifiedLimits(v_min,v_max)` in the physical coordinate `v = s x + c` with `x` the reference coordinate and `s` and `c` the scale and shift factors, respectively. Test this feature by computing the mass matrix for 1D linear and nonlinear operators, and 2D linear operators, using the default method, and by adding together results of the integration over subdomains.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Options for 1D quadrature using type dispatch. We introduce and abstract type
and the structs
Default1DQuadrature <: Abstract1DQuadratureandGLSpecifiedLimits <: Abstract1DQuadrature.The default options
correspond to a Gauss-Legendre quadrature between the element boundaries.
The options
correspond to a Gauss-Legendre quadrature in the ranges
[max(v_l,v_min), min(v_u,v_max)]wherev_landv_uare the lower and upper element boundaries for the element in question, respectively.The
GLSpecifiedLimits()quadrature option is useful when the kernel function is nonzero or supported only over a range[v_min,v_max]which does not perfectly overlap with[v_l,v_u].