Skip to content

Commit

Permalink
LNRF test
Browse files Browse the repository at this point in the history
Also removed Dilaton-Axion from tests (see issue #52).
  • Loading branch information
fjebaker committed Sep 30, 2022
1 parent 49035c6 commit 050b7d9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/unit/gradusbase.geometry.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

@testset "tetradframe" begin
all_metrics = (
# can't do first order yet since no four velocity
Expand All @@ -8,7 +7,7 @@
BoyerLindquistAD(1.0, -0.998),
JohannsenAD(M = 1.0, a = 0.998, α13 = 1.0),
JohannsenAD(M = 1.0, a = 0.998, α22 = 1.0),
DilatonAxionAD(M = 1.0, a = 0.998, β = 0.2, b = 1.0),
# DilatonAxionAD(M = 1.0, a = 0.998, β = 0.2, b = 1.0),
)
radii = 5.0:0.8:10.0
angles = 0.1:0.5:2π
Expand All @@ -30,4 +29,19 @@
# ensure it gives minkowski
@test isapprox(res, minkowski, atol = 1e-13)
end


@testset "lnrf" begin
for m in all_metrics, r in radii, θ in angles
u = @SVector([0.0, r, θ, 0.0])

# function that we are testing
M = GradusBase.lnrframe(m, u)

m_mat = Gradus.metric(m, u)
@tullio res[a, b] := m_mat[i, j] * M[a][i] * M[b][j]
# ensure it gives minkowski
@test isapprox(res, minkowski, atol = 1e-13)
end
end
end

0 comments on commit 050b7d9

Please sign in to comment.