Fix sign on H component of PML

This commit is contained in:
Jan Petykiewicz 2018-11-29 01:36:13 -08:00
parent ea5e298023
commit 1e874cb0c0

View File

@ -96,9 +96,9 @@ ftype Hz_old = Hz[i];
{%- endif %} {%- endif %}
// H update equations // H update equations
Hx[i] -= dt * (dEzy - dEyz + pHxi); Hx[i] -= dt * (dEzy - dEyz - pHxi);
Hy[i] -= dt * (dExz - dEzx + pHyi); Hy[i] -= dt * (dExz - dEzx - pHyi);
Hz[i] -= dt * (dEyx - dExy + pHzi); Hz[i] -= dt * (dEyx - dExy - pHzi);
{% if do_poynting -%} {% if do_poynting -%}
// Average H across timesteps // Average H across timesteps