You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in InitElement.cpp shows that the value of has_old_xmax can change from false to true, even if "xmax" does not appear anywhere.
This appears in the context of PR #802. It has no affect on Python-based input.
The text was updated successfully, but these errors were encountered:
cemitch99
changed the title
Using bool variable = __queryAdd(__) for elements appearing more than once yields false -> true
Using bool variable with queryAdd for elements appearing more than once can yield false -> true
Jan 17, 2025
For a lattice with an element (named, eg, "
ap1
") that appears more than once in the lattice, the use of lines such as:bool has_old_xmax = pp_element.queryAdd("xmax", aperture_x);
amrex::Print() << "has_old_xmax" << " " << has_old_xmax << std::endl;
in
InitElement.cpp
shows that the value ofhas_old_xmax
can change fromfalse
totrue
, even if "xmax" does not appear anywhere.This appears in the context of PR #802. It has no affect on Python-based input.
The text was updated successfully, but these errors were encountered: