move vec, vecu into coremem_types
- this will allow it to be used from within the spirv code. - had to change some coremem code which was previously peering into privates or now-unrestricted constraints. - may need to put the serde stuff behind a feature flag (or force nostd?)
This commit is contained in:
@@ -1066,12 +1066,12 @@ impl<'a, R: Real, M: Material<R>> HCell<'a, R, M> {
|
||||
let aux = &mut pml.aux_h;
|
||||
// (S^-1 \nabla) x E
|
||||
Vec3::from((
|
||||
aux.sy_conv_dfz_dy.step_only_sigma(e.y, delta_ez_y)
|
||||
- aux.sz_conv_dfy_dz.step_only_sigma(e.z, delta_ey_z),
|
||||
aux.sz_conv_dfx_dz.step_only_sigma(e.z, delta_ex_z)
|
||||
- aux.sx_conv_dfz_dx.step_only_sigma(e.x, delta_ez_x),
|
||||
aux.sx_conv_dfy_dx.step_only_sigma(e.x, delta_ey_x)
|
||||
- aux.sy_conv_dfx_dy.step_only_sigma(e.y, delta_ex_y),
|
||||
aux.sy_conv_dfz_dy.step_only_sigma(e.y(), delta_ez_y)
|
||||
- aux.sz_conv_dfy_dz.step_only_sigma(e.z(), delta_ey_z),
|
||||
aux.sz_conv_dfx_dz.step_only_sigma(e.z(), delta_ex_z)
|
||||
- aux.sx_conv_dfz_dx.step_only_sigma(e.x(), delta_ez_x),
|
||||
aux.sx_conv_dfy_dx.step_only_sigma(e.x(), delta_ey_x)
|
||||
- aux.sy_conv_dfx_dy.step_only_sigma(e.y(), delta_ex_y),
|
||||
))
|
||||
}
|
||||
};
|
||||
@@ -1183,12 +1183,12 @@ impl<'a, R: Real, M: Material<R>> ECell<'a, R, M> {
|
||||
let aux = &mut pml.aux_e;
|
||||
// (S^-1 \nabla) x H
|
||||
Vec3::from((
|
||||
aux.sy_conv_dfz_dy.step_only_sigma(e.y, delta_hz_y)
|
||||
- aux.sz_conv_dfy_dz.step_only_sigma(e.z, delta_hy_z),
|
||||
aux.sz_conv_dfx_dz.step_only_sigma(e.z, delta_hx_z)
|
||||
- aux.sx_conv_dfz_dx.step_only_sigma(e.x, delta_hz_x),
|
||||
aux.sx_conv_dfy_dx.step_only_sigma(e.x, delta_hy_x)
|
||||
- aux.sy_conv_dfx_dy.step_only_sigma(e.y, delta_hx_y),
|
||||
aux.sy_conv_dfz_dy.step_only_sigma(e.y(), delta_hz_y)
|
||||
- aux.sz_conv_dfy_dz.step_only_sigma(e.z(), delta_hy_z),
|
||||
aux.sz_conv_dfx_dz.step_only_sigma(e.z(), delta_hx_z)
|
||||
- aux.sx_conv_dfz_dx.step_only_sigma(e.x(), delta_hz_x),
|
||||
aux.sx_conv_dfy_dx.step_only_sigma(e.x(), delta_hy_x)
|
||||
- aux.sy_conv_dfx_dy.step_only_sigma(e.y(), delta_hx_y),
|
||||
))
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user