Skip to content

Commit

Permalink
Fix Aperture Backwards Compat. (#804)
Browse files Browse the repository at this point in the history
Do not add the old parameter to `ParmParse`. Just check if it is there
and only add `aperture_x/y`.
  • Loading branch information
ax3l authored Jan 18, 2025
1 parent 9e77622 commit fe6e789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialization/InitElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ namespace detail
// pp_element.getWithParser("aperture_x", aperture_x);
// pp_element.getWithParser("aperture_y", aperture_y);
// Backwards compatibility to ImpactX <= 25.01
bool const has_old_xmax = pp_element.queryAddWithParser("xmax", aperture_x);
bool const has_old_ymax = pp_element.queryAddWithParser("ymax", aperture_y);
bool const has_old_xmax = pp_element.queryWithParser("xmax", aperture_x);
bool const has_old_ymax = pp_element.queryWithParser("ymax", aperture_y);
if (has_old_xmax) {
pp_element.queryAddWithParser("aperture_x", aperture_x);
ablastr::warn_manager::WMRecordWarning(
Expand Down

0 comments on commit fe6e789

Please sign in to comment.