From 0bb4105e7aa23423cacb236a8e3b64142c76c0cd Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 4 Nov 2019 20:30:07 -0800 Subject: [PATCH] e dot j should take into account dxes --- meanas/test/test_fdfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meanas/test/test_fdfd.py b/meanas/test/test_fdfd.py index 8325d63..31e3553 100644 --- a/meanas/test/test_fdfd.py +++ b/meanas/test/test_fdfd.py @@ -27,7 +27,7 @@ def test_poynting_planes(sim): s[0, mask].sum(), -s[1, my].sum(), s[0, mask].sum(), -s[2, mz].sum()] - e_dot_j = sim.e * sim.j + e_dot_j = sim.e * sim.j * sim.dxes[0][0][:, None, None] * sim.dxes[0][1][None, :, None] * sim.dxes[0][2][None, None, :] src_energy = -e_dot_j.real / 2 assert_close(sum(planes), (src_energy).sum())