-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fold
Ferrite.value
into methods of shape_value
This patch deprecates `Ferrite.value(ip::Interpolation, i::Int, ξ::Vec)` in favor of `shape_value(ip::Interpolation, ξ::Vec, i::Int)`. Note that the argument order is flipped to resemble the `(Cell|Face)Values` API more. Compare e.g. `shape_value(ip, ξ, i)` with `shape_value(cv, qp, i)`: the second argument becomes the "quadrature point" argument (`ξ` ~ `qp`), and the third argument is the shape function index, in both cases. Since `shape_value` is exported this introduces new (public) functionality to users -- for some applications it is nice to be able to evaluate the shape functions in the reference domain without having to go through `CellValues`. For the same reason this patch also adds the method `shape_gradient(ip::Interpolation, ξ::Vec, i::Int)` which falls back to AD from Tensors.jl. Fixes #609.
- Loading branch information
1 parent
240cd94
commit 30a144c
Showing
8 changed files
with
77 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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