From f0a35e5f0d178f85609371f5c2be9b03a290e1f0 Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Mon, 19 Jul 2021 12:44:19 +0200 Subject: [PATCH] Added a few lines to ensure the value of the number of atoms property of both the oven object and the MOT object are the same. --- +Simulator/@TwoDimensionalMOT/runSimulation.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/+Simulator/@TwoDimensionalMOT/runSimulation.m b/+Simulator/@TwoDimensionalMOT/runSimulation.m index 36fe7c4..f26b3b1 100644 --- a/+Simulator/@TwoDimensionalMOT/runSimulation.m +++ b/+Simulator/@TwoDimensionalMOT/runSimulation.m @@ -1,11 +1,12 @@ function [LoadingRate, StandardError, ConfidenceInterval] = runSimulation(this, ovenObj) - + if this.NumberOfAtoms ~= ovenObj.NumberOfAtoms + ovenObj.NumberOfAtoms = this.NumberOfAtoms; + end %% - Sampling for initial positions and velocities % - sampling the position distribution Positions = ovenObj.initialPositionSampling(); % - sampling the velocity distribution Velocities = ovenObj.initialVelocitySampling(this); - %% Solve ODE progressbar = Helper.parforNotifications(); progressbar.PB_start(this.NumberOfAtoms,'Message',['Simulating 2-D MOT capture process for ' num2str(this.NumberOfAtoms,'%.0f') ' atoms:']);