Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParmPaser::queryAdd #2573

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Conversation

WeiqunZhang
Copy link
Member

Add a new member function, queryAdd, to ParmParse. If the name is found,
the value in the ParmParse database will be stored in the reference
argument. If not, the value in the argument will be added to the ParmParse
database. The return value indicates if it existed previously.

Many codes use ParmParse::dumpTable to store the ParmParse data in
plot/checkpoint files. But for parameters that not present in inputs files
or command line arguments, they would not appear in the dumped tables. The
new queryAdd function can be used to address this issue.

In amrex/Src, the calls to query are replaced by queryAdd so that it's
easy to find their values.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Add a new member function, queryAdd, to ParmParse.  If the name is found,
the value in the ParmParse database will be stored in the reference
argument.  If not, the value in the argument will be added to the ParmParse
database.  The return value indicates if it existed previously.

Many codes use ParmParse::dumpTable to store the ParmParse data in
plot/checkpoint files.  But for parameters that not present in inputs files
or command line arguments, they would not appear in the dumped tables.  The
new queryAdd function can be used to address this issue.

In amrex/Src, the calls to `query` are replaced by `queryAdd` so that it's
easy to find their values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants