Skip to content

Commit

Permalink
Release v0.14.0 (#93)
Browse files Browse the repository at this point in the history
* Add test for jacobian of Bezier out of bounds

* Bump version

* Specify error type

* Change integrand to eliminate deprecation warning

* Add test for differential in 4D

* Apply format suggestions [skip ci]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Remove obsolete line

* Fix `box4d` creation

* Switch to jacobian, differential not exported

* Qualify usage of non-exported differential function

* Typo

* Switch from test_throws to test with broken=true

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joshua Lampert <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2024
1 parent 79ea114 commit 4086902
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MeshIntegrals"
uuid = "dadec2fd-bbe0-4da4-9dbe-476c782c8e47"
version = "0.14.0-DEV"
version = "0.14.0"

[deps]
CoordRefSystems = "b46f11dc-f210-4604-bfba-323c1ec968cb"
Expand Down
15 changes: 13 additions & 2 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
[Point(t * u"m", sin(t) * u"m", 0.0u"m") for t in range(-pi, pi, length = 361)]
)

f(x, y, z) = (1 / sqrt(1 + cos(x)^2)) * u"Ω/m"
f(p::Meshes.Point) = f(ustrip(to(p))...)
function f(p::P) where {P <: Meshes.Point}
ux = ustrip(p.coords.x)
(1 / sqrt(1 + cos(ux)^2)) * u"Ω/m"
end
fv(p) = fill(f(p), 3)

# Scalar integrand
Expand All @@ -27,6 +29,15 @@
@test lineintegral(f, curve)sol rtol=0.5e-2
@test_throws "not supported" surfaceintegral(f, curve)
@test_throws "not supported" volumeintegral(f, curve)

# Check Bezier-specific jacobian bounds
@test_throws DomainError jacobian(curve, [1.1])
end

@testitem "Meshes.Box" setup=[Setup] begin
# Test for currently-unsupported >3D differentials
box4d = Box(Point(zeros(4)...), Point(ones(4)...))
@test integral(f -> one(Float64), box4d)1.0u"m^4" broken=true
end

@testitem "Meshes.Cone" setup=[Setup] begin
Expand Down

2 comments on commit 4086902

@mikeingold
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/116247

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.14.0 -m "<description of version>" 408690279f7c5a2cea4575433ffa120d41016596
git push origin v0.14.0

Please sign in to comment.