Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt committed Sep 13, 2023
1 parent b22d963 commit e5b44a1
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def test_compute_zavgS(program_processor, lift_mode):
)

if validate:
assert_close(-199755464.25741270, min(zavgS))
assert_close(388241977.58389181, max(zavgS))
assert_close(-199755464.25741270, np.min(zavgS))
assert_close(388241977.58389181, np.max(zavgS))

run_processor(
compute_zavgS_fencil,
Expand All @@ -177,8 +177,8 @@ def test_compute_zavgS(program_processor, lift_mode):
lift_mode=lift_mode,
)
if validate:
assert_close(-1000788897.3202186, min(zavgS))
assert_close(1000788897.3202186, max(zavgS))
assert_close(-1000788897.3202186, np.min(zavgS))
assert_close(1000788897.3202186, np.max(zavgS))


@fendef
Expand Down Expand Up @@ -227,11 +227,11 @@ def test_compute_zavgS2(program_processor, lift_mode):
)

if validate:
assert_close(-199755464.25741270, min(zavgS[0]))
assert_close(388241977.58389181, max(zavgS[0]))
assert_close(-199755464.25741270, np.min(zavgS[0]))
assert_close(388241977.58389181, np.max(zavgS[0]))

assert_close(-1000788897.3202186, min(zavgS[1]))
assert_close(1000788897.3202186, max(zavgS[1]))
assert_close(-1000788897.3202186, np.min(zavgS[1]))
assert_close(1000788897.3202186, np.max(zavgS[1]))


def test_nabla(program_processor, lift_mode):
Expand Down Expand Up @@ -272,10 +272,10 @@ def test_nabla(program_processor, lift_mode):
)

if validate:
assert_close(-3.5455427772566003e-003, min(pnabla_MXX))
assert_close(3.5455427772565435e-003, max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, min(pnabla_MYY))
assert_close(3.3540113705465301e-003, max(pnabla_MYY))
assert_close(-3.5455427772566003e-003, np.min(pnabla_MXX))
assert_close(3.5455427772565435e-003, np.max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, np.min(pnabla_MYY))
assert_close(3.3540113705465301e-003, np.max(pnabla_MYY))


@fendef
Expand Down Expand Up @@ -329,10 +329,10 @@ def test_nabla2(program_processor, lift_mode):
)

if validate:
assert_close(-3.5455427772566003e-003, min(pnabla_MXX))
assert_close(3.5455427772565435e-003, max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, min(pnabla_MYY))
assert_close(3.3540113705465301e-003, max(pnabla_MYY))
assert_close(-3.5455427772566003e-003, np.min(pnabla_MXX))
assert_close(3.5455427772565435e-003, np.max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, np.min(pnabla_MYY))
assert_close(3.3540113705465301e-003, np.max(pnabla_MYY))


@fundef
Expand Down Expand Up @@ -416,7 +416,7 @@ def test_nabla_sign(program_processor, lift_mode):
)

if validate:
assert_close(-3.5455427772566003e-003, min(pnabla_MXX))
assert_close(3.5455427772565435e-003, max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, min(pnabla_MYY))
assert_close(3.3540113705465301e-003, max(pnabla_MYY))
assert_close(-3.5455427772566003e-003, np.min(pnabla_MXX))
assert_close(3.5455427772565435e-003, np.max(pnabla_MXX))
assert_close(-3.3540113705465301e-003, np.min(pnabla_MYY))
assert_close(3.3540113705465301e-003, np.max(pnabla_MYY))

0 comments on commit e5b44a1

Please sign in to comment.