Skip to content

Commit

Permalink
Merge pull request #82 from radiasoft/81-undefined-l_cryst-variable
Browse files Browse the repository at this point in the history
Fixed L_cryst bug
  • Loading branch information
k-wolfinger authored Jul 25, 2023
2 parents ecb13f5 + 4268bd6 commit cbec71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslaser/optics/crystal.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def _propagate_n0n2_srw(self, laser_pulse, calc_gain, nl_kick):
thisSlice = self.nl_kick(thisSlice)

if n2 == 0:
optDrift = srwlib.SRWLOptD(L_cryst / n0)
optDrift = srwlib.SRWLOptD(L_slice / n0)
propagParDrift = [0, 0, 1.0, 0, 0, 1.0, 1.0, 1.0, 1.0, 0, 0, 0]
# propagParDrift = [0, 0, 1., 0, 0, 1.1, 1.2, 1.1, 1.2, 0, 0, 0]
optBL = srwlib.SRWLOptC([optDrift], [propagParDrift])
Expand Down

0 comments on commit cbec71d

Please sign in to comment.