Closed brantr closed 4 months ago
I have verified that setting density_floor=0
in the parameter file triggers the warning.
It should be the case that not setting the density floor parameter in the input file still triggers the warning, since it is given a default value of zero in the parameter struct header where it is declared. If not, we should fix it. The intended behavior is to warn the user if they have compiled with the density floor flag but haven’t set their desired floor in the input file. If this is unclear, we can work on the wording in the warning.
-- Evan Schneider Assistant Professor of Physics and Astronomy University of Pittsburgh 520-822-6294 pronouns: she/they I support the Union of Pitt Facultyhttps://www.pittfaculty.org/
On Feb 6, 2024, at 5:23 PM, Brant Robertson @.***> wrote:
I have verified that setting density_floor=0 in the parameter file triggers the warning.
— Reply to this email directly, view it on GitHubhttps://github.com/cholla-hydro/cholla/issues/372#issuecomment-1930867457, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA2F4XDVGSOEN32UIKX3ZXDYSKUNVAVCNFSM6AAAAABC4YHFAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQHA3DONBVG4. You are receiving this because you are subscribed to this thread.Message ID: @.***>
@helenarichie Can you take a look at this?
Fixed in PR #373
In global.cpp, there is a warning that looks intended to alert the user that they are using the default
density_floor=0
. However, as written, this will only trigger ifdensity_floor
is defined in the parameter file:If
density_floor
doesn't appear in the parameter file, theelse if()
doesn't get executed.I'm checking to see whether this was intended (warning the user they have set the density floor to zero), or whether a general warning about using
density_floor=0
was intended (regardless of the declaration ofdensity_floor
in the parameter file).