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

ParmParse: queryarrWithParser #4073

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

WeiqunZhang
Copy link
Member

Add a new function queryarrWithParser that will query an array of values using Parser. The function takes the number of elements as an argument too. If the size of the input found with ParmParse does not match the size argument, it's a runtime error. For each individual array element, queryWithParser is used for the query.

The behavior of queryWithParser has changed. Previously, the query function is used for unresolved symbols. Now the queryWithParser function is used instead. The difference is that the latter will ignore the spaces in the input and combine the entire input into a single string.

Add a new function queryarrWithParser that will query an array of values
using Parser. The function takes the number of elements as an argument
too. If the size of the input found with ParmParse does not match the size
argument, it's a runtime error. For each individual array element,
queryWithParser is used for the query.

The behavior of queryWithParser has changed. Previously, the query function
is used for unresolved symbols. Now the queryWithParser function is used
instead. The difference is that the latter will ignore the spaces in the
input and combine the entire input into a single string.
@AlexanderSinn
Copy link
Member

I'm out of office, so I can't try it now, but this should fix the issue for me as I can now use pp_parser with use_querywithparser = true directly.

@WeiqunZhang WeiqunZhang merged commit 0e97bad into AMReX-Codes:development Aug 20, 2024
71 of 72 checks passed
@WeiqunZhang WeiqunZhang deleted the queryarrWithParser branch August 20, 2024 01:33
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.

3 participants