Skip to content

Commit

Permalink
Add units
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Sep 30, 2024
1 parent a69d8b1 commit 1395945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ end

function f(p::P) where {P <: Meshes.Point}
t = ustrip(p.coords.x)
sqrt(a^2 - t^2)
sqrt(a^2 - t^2) * u"Ω/m"
end
fv(p) = fill(f(p), 3)

# Scalar integrand
sol = π * a^2 / 4
sol = π * a^2 / 4 * u"Ω"
@test integral(f, box, GaussLegendre(100)) sol
@test integral(f, box, GaussKronrod()) sol
@test integral(f, box, HAdaptiveCubature()) sol
Expand Down

0 comments on commit 1395945

Please sign in to comment.