Skip to content

Commit

Permalink
Fix ohmienvelope with wigglers (#870)
Browse files Browse the repository at this point in the history
* Typo in GWigSymplecticRadPass
* Added EnergyLossRadPass
* fix Matlab bug: string -> char array
  • Loading branch information
lfarv authored Dec 11, 2024
1 parent 4a92361 commit 3777663
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions atmat/atphysics/Radiation/atdiffmat.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

newmethods = {'BndMPoleSymplectic4RadPass', ...
'StrMPoleSymplectic4RadPass', ...
'ExactMultipoleRadPass'};
'ExactMultipoleRadPass',...
'GWigSymplecticRadPass',...
'EnergyLossRadPass'};

NumElements=length(ring);

Expand Down Expand Up @@ -62,7 +64,7 @@

function elem=substitute(elem)
if ~any(strcmp(elem.PassMethod, newmethods))
elem.PassMethod = "BndMPoleSymplectic4RadPass";
elem.PassMethod = 'BndMPoleSymplectic4RadPass';
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion pyat/at/physics/radiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"BndMPoleSymplectic4RadPass",
"StrMPoleSymplectic4RadPass",
"ExactMultipoleRadPass",
"GWigSymplectic4RadPass",
"GWigSymplecticRadPass",
"EnergyLossRadPass",
}

_NSTEP = 60 # nb slices in a wiggler period
Expand Down

0 comments on commit 3777663

Please sign in to comment.