Skip to content

Commit 326eb0c

Browse files
committed
convert = to += as suggested by @ax3l
1 parent 3a24663 commit 326eb0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/picongpu/include/fields/laserProfiles/laserWavepacket.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ HINLINE float3_X laserLongitudinal(uint32_t currentStep, float_X& phase)
7272
envelope *= math::exp(-0.5 * exponent * exponent);
7373
}
7474

75-
phase = float_X(w * runTime + LASER_PHASE);
75+
phase += float_X(w * runTime) + LASER_PHASE;
7676

7777
if( Polarisation == LINEAR_X )
7878
{

0 commit comments

Comments
 (0)