Skip to content

Commit

Permalink
Fixed test_constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHelfer committed Dec 29, 2023
1 parent 67e5cf6 commit 1a96192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_Constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_Constraints():
# Prepare the data and compute derivatives using TensorDict
vars = TensorDict(cut_ghosts(dataX), keys_all)
d1 = TensorDict(diff1(dataX, oneoverdx), keys_all)
d2 = TensorDict(diff2(dataX, oneoverdx**2), keys_all)
h_UU = torch.inverse(vars["h"])
chris = compute_christoffel(d1["h"], h_UU)
out = constraint_equations(vars, d1, d2, h_UU, chris)
Expand Down

0 comments on commit 1a96192

Please sign in to comment.