Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why ii = 2:z_points ? #4

Open
landieyun opened this issue May 3, 2018 · 1 comment
Open

why ii = 2:z_points ? #4

landieyun opened this issue May 3, 2018 · 1 comment

Comments

@landieyun
Copy link

Hi all:

 Does anyone know why the step number ii begin from 2 not from 1? thanks so much.

%% Run the step function over each step
tic
for ii = 2:z_points
% Print the step number if verbose
if sim.verbose
t_in_loop = tic;
disp(ii)
end

@AaHaHaa
Copy link

AaHaHaa commented Dec 20, 2018

"ii=1" represents the starting point of the fiber. The solver uses the information of the previous z_point to solve for the next z_point and thus ii starts from the next point of the starting point, which is ii=2, to the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants