Fix sign on H component of PML
This commit is contained in:
parent
ea5e298023
commit
1e874cb0c0
@ -96,9 +96,9 @@ ftype Hz_old = Hz[i];
|
||||
{%- endif %}
|
||||
|
||||
// H update equations
|
||||
Hx[i] -= dt * (dEzy - dEyz + pHxi);
|
||||
Hy[i] -= dt * (dExz - dEzx + pHyi);
|
||||
Hz[i] -= dt * (dEyx - dExy + pHzi);
|
||||
Hx[i] -= dt * (dEzy - dEyz - pHxi);
|
||||
Hy[i] -= dt * (dExz - dEzx - pHyi);
|
||||
Hz[i] -= dt * (dEyx - dExy - pHzi);
|
||||
|
||||
{% if do_poynting -%}
|
||||
// Average H across timesteps
|
||||
|
Loading…
Reference in New Issue
Block a user