-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize differential element calculation to n-dims (#101)
* Add CliffordNumbers to deps * Add _clifford utility * Bugfix * Change _clifford to _kvector, avoid an allocation * Explicit namespace * Add _Vec utility * Generalize differential to n-dims * using CliffordNumbers * Explicit namespace, disable _Vec utility * Bugfix * Switch CliffordNumbers from import to using * Remove _Vec utility * Drop stale explicit import * Convert LinearAlgebra to an import * Enable full testing of 4D Box * Analytic integrand/solution for 4D Box * Bugfix * Error when using GK rule >3D * Bugfix * Add explicit rtol for 4D Box * Bump minimum CliffordNumbers (downgrade failing) * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Bump minimum again * Convert all generic errors to specific errors * Apply suggestions from code review Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com> * Try new method for units handling * Bugfix * Generalize _units to all geometry types * Condense generic GaussKronrod cases above 2D * Apply format suggestion [skip ci] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update obsoleted comment * Add tests for utils * Change jacobian API to return via ntuple * Apply format suggestions Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Remove _ukvector [skip ci] Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com> * Organization * Remove tests for _ukvector * Remove @inline * Increase minimum CliffordNumbers version --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
- Loading branch information
1 parent
7111f32
commit 711d5b4
Showing
10 changed files
with
84 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@testitem "Utilities" setup=[Setup] begin | ||
using LinearAlgebra: norm | ||
|
||
# _kvector | ||
v = Meshes.Vec(3, 4) | ||
@test norm(MeshIntegrals._kvector(v)) ≈ 5.0 | ||
|
||
# _units | ||
p = Point(1.0u"cm", 2.0u"mm", 3.0u"m") | ||
@test MeshIntegrals._units(p) == u"m" | ||
end |