Skip to content

Commit 738a0dd

Browse files
Fix string concatenation in assert (#6040)
1 parent f09c7e2 commit 738a0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Particles/LaserParticleContainer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies,
251251
(m_nvec[0]-windir[0])*(m_nvec[0]-windir[0]) +
252252
(m_nvec[1]-windir[1])*(m_nvec[1]-windir[1]) +
253253
(m_nvec[2]-windir[2])*(m_nvec[2]-windir[2]) < 1.e-12,
254-
"do_continous_injection for laser particle only works" +
254+
"do_continous_injection for laser particle only works"
255255
" if moving window direction and laser propagation direction are the same");
256256
if ( WarpX::gamma_boost>1 ){
257257
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
258258
(WarpX::boost_direction[0]-0)*(WarpX::boost_direction[0]-0) +
259259
(WarpX::boost_direction[1]-0)*(WarpX::boost_direction[1]-0) +
260260
(WarpX::boost_direction[2]-1)*(WarpX::boost_direction[2]-1) < 1.e-12,
261-
"do_continous_injection for laser particle only works if " +
261+
"do_continous_injection for laser particle only works if "
262262
"warpx.boost_direction = z. TODO: all directions.");
263263
}
264264
}

0 commit comments

Comments
 (0)