From 1a96192ff2b23997ad7509817e347c9270bb160e Mon Sep 17 00:00:00 2001 From: thelfer1 Date: Fri, 29 Dec 2023 12:25:40 -0500 Subject: [PATCH] Fixed test_constraint --- tests/test_Constraints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_Constraints.py b/tests/test_Constraints.py index c411bf7..2e4e3d0 100644 --- a/tests/test_Constraints.py +++ b/tests/test_Constraints.py @@ -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)