From 412f70bc01409cb867c1a57c970fc6951923bc31 Mon Sep 17 00:00:00 2001 From: Francesco Massimo Date: Tue, 21 Nov 2023 11:58:31 +0100 Subject: [PATCH] fix script bug --- Postprocessing_Scripts/Laser_waist_theory_vs_Smilei.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Postprocessing_Scripts/Laser_waist_theory_vs_Smilei.py b/Postprocessing_Scripts/Laser_waist_theory_vs_Smilei.py index 0997940..3339f54 100755 --- a/Postprocessing_Scripts/Laser_waist_theory_vs_Smilei.py +++ b/Postprocessing_Scripts/Laser_waist_theory_vs_Smilei.py @@ -58,7 +58,7 @@ half_waist_simulated.append( half_waist ) # analytical waist, Rayleigh formula - waist_analytical.append(waist0*math.sqrt(1.+((S.namelist.Lx+iter*dt-S.namelist.x_focus)/Zr)**2)) + waist_analytical.append(waist0*math.sqrt(1.+((S.namelist.center_laser+iter*dt-S.namelist.x_focus)/Zr)**2)) waist_analytical= np.asarray(waist_analytical) waist_simulated = 2.*np.asarray(half_waist_simulated)