We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5360b3 commit d317d30Copy full SHA for d317d30
include/picongpu/fields/background/templates/twtstight/getFieldPositions_SI.tpp
@@ -57,7 +57,7 @@ namespace picongpu
57
floatD_X laserOrigin = precisionCast<float_X>(halfSimSize);
58
laserOrigin.y() = float_X(focus_y_SI / cellDimensions.y());
59
if constexpr(simDim == DIM3)
60
- laserOrigin.z() += float_X(focus_z_offset_SI / cellDimensions.z());
+ laserOrigin[simDim - 1] += float_X(focus_z_offset_SI / cellDimensions[simDim - 1]);
61
62
/* For staggered fields (e.g. Yee-grid), obtain the fractional cell index components and add
63
* that to the total cell indices. The physical field coordinate origin is transversally
0 commit comments