diff --git a/examples/laser/analysis_laser_vacuum.py b/examples/laser/analysis_laser_vacuum.py index 465867ec6a..0f307419e1 100755 --- a/examples/laser/analysis_laser_vacuum.py +++ b/examples/laser/analysis_laser_vacuum.py @@ -40,9 +40,8 @@ A0 = np.zeros(len(ts1.iterations)) Z = np.zeros(len(ts1.iterations)) for iteration in ts1.iterations: - F1, m1 = ts1.get_field(iteration=iteration, field='laser_real') - F2, m2 = ts1.get_field(iteration=iteration, field='laser_imag') - a_abs = np.abs(F1+1j*F2) + F, m1 = ts1.get_field(iteration=iteration, field='laserEnvelope') + a_abs = np.abs(F) W0[iteration] = 2.*np.sqrt(np.sum(a_abs**2*m1.x**2)/np.sum(a_abs**2)) A0[iteration] = 2.*np.max(a_abs) Z[iteration] = ts1.current_t*scc.c diff --git a/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.1Rank.json b/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.1Rank.json index 4f99915788..18ad9de95d 100644 --- a/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.1Rank.json +++ b/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.1Rank.json @@ -15,8 +15,7 @@ "jy": 11069.842800964, "jy_beam": 0.0, "jz_beam": 0.0, - "laser_imag": 0.00080302022219427, - "laser_real": 60820.320200801, + "laserEnvelope": 60820.320200801, "rhomjz": 29849.622242832 } } diff --git a/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.SI.1Rank.json b/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.SI.1Rank.json index e37b0cd832..e33f58838a 100644 --- a/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.SI.1Rank.json +++ b/tests/checksum/benchmarks_json/laser_blowout_wake_explicit.SI.1Rank.json @@ -15,8 +15,7 @@ "jy": 1.5015192828127e+17, "jy_beam": 0.0, "jz_beam": 0.0, - "laser_imag": 80.30189635727, - "laser_real": 60820.320200801, + "laserEnvelope": 60820.474227637, "rhomjz": 1350541029.8265 } } diff --git a/tests/checksum/benchmarks_json/production.SI.2Rank_lwfa.json b/tests/checksum/benchmarks_json/production.SI.2Rank_lwfa.json index 80f31b841d..42bcd41cff 100644 --- a/tests/checksum/benchmarks_json/production.SI.2Rank_lwfa.json +++ b/tests/checksum/benchmarks_json/production.SI.2Rank_lwfa.json @@ -15,8 +15,7 @@ "jy": 59255897.782443, "jy_beam": 0.0, "jz_beam": 0.0, - "laser_imag": 24.919215184694, - "laser_real": 173.25896257113, + "laserEnvelope": 175.43495692727, "rhomjz": 897371.58141288 } }