Skip to content

Commit

Permalink
Update InitElement.cpp
Browse files Browse the repository at this point in the history
Restore deleted PlaneXY.
  • Loading branch information
cemitch99 authored Nov 19, 2024
1 parent eb14cde commit 80f6b73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/initialization/InitElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ namespace detail
pp_element.get("phi_out", phi_out);

m_lattice.emplace_back( PRot(phi_in, phi_out, element_name) );
} else if (element_type == "plane_xyrotation")
{
auto a = detail::query_alignment(pp_element);

amrex::ParticleReal phi;
pp_element.get("angle", phi);

m_lattice.emplace_back( PlaneXYRot(phi, a["dx"], a["dy"], a["rotation_degree"], element_name) );
} else if (element_type == "solenoid_softedge")
{
auto const [ds, nslice] = detail::query_ds(pp_element, nslice_default);
Expand Down

0 comments on commit 80f6b73

Please sign in to comment.