From ca70d6e6c8d1f703a2efb24d15c76c388a81ff62 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 4 Nov 2019 20:31:02 -0800 Subject: [PATCH] Sample all three S components... --- meanas/test/test_fdfd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meanas/test/test_fdfd.py b/meanas/test/test_fdfd.py index ffd69ea..8397a45 100644 --- a/meanas/test/test_fdfd.py +++ b/meanas/test/test_fdfd.py @@ -26,8 +26,8 @@ def test_poynting_planes(sim): exh = fdfd.operators.poynting_e_cross(e=ev, dxes=sim.dxes) @ hv.conj() s = unvec(exh.real / 2, sim.shape[1:]) planes = [s[0, mask].sum(), -s[0, mx].sum(), - s[0, mask].sum(), -s[1, my].sum(), - s[0, mask].sum(), -s[2, mz].sum()] + s[1, mask].sum(), -s[1, my].sum(), + s[2, mask].sum(), -s[2, mz].sum()] 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