clarify that just a plain sum is used (rather than mean)

This commit is contained in:
Jan Petykiewicz 2021-07-11 17:05:02 -07:00
parent 45e047c50e
commit da3216133a

View File

@ -123,14 +123,14 @@ __global ftype *Sx = S + XX;
__global ftype *Sy = S + YY;
__global ftype *Sz = S + ZZ;
// Average H across timesteps
ftype aHxt = Hx[i] + Hx_old;
ftype aHyt = Hy[i] + Hy_old;
ftype aHzt = Hz[i] + Hz_old;
// Sum old and new H
ftype sHxt = Hx[i] + Hx_old;
ftype sHyt = Hy[i] + Hy_old;
ftype sHzt = Hz[i] + Hz_old;
Sx[i] = Ey[i + px] * aHzt - Ez[i + px] * aHyt;
Sy[i] = Ez[i + py] * aHxt - Ex[i + py] * aHzt;
Sz[i] = Ex[i + pz] * aHyt - Ey[i + pz] * aHxt;
Sx[i] = Ey[i + px] * sHzt - Ez[i + px] * sHyt;
Sy[i] = Ez[i + py] * sHxt - Ex[i + py] * sHzt;
Sz[i] = Ex[i + pz] * sHyt - Ey[i + pz] * sHxt;
{%- endif -%}
{% if do_poynting_halves -%}