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

Investigate libMesh command line parsing and GetPot UFO interaction #608

Open
pbauman opened this issue Oct 2, 2021 · 1 comment
Open

Comments

@pbauman
Copy link
Member

pbauman commented Oct 2, 2021

This came up in #607 in the context of wanting to use --n_threads (that libMesh uses). The issue is that libMeshInit creates its own GetPot parser and so the one GRINS uses doesn't see that the --n_threads (or any of the other options accessed by libMeshInit) are actually access so we fail with a UFO error. However, libMesh has many different options in different places. Where are they all? By the time we've set everything up, have we captured everything else except for what is in libMeshInit or are there other places? What's going to be a workable solution?

@roystgnr
Copy link
Member

roystgnr commented Oct 4, 2021

We could try to make sure that every libMesh CLI option gets queried from within the LibMeshInit constructor, and then see about merging the list of recorded queries there into the GRINS parser. I'm not sure how we enforce that, though. We can't disallow subsequent queries to the libMesh CLI APIs, because we expect those methods to be callable from user code, not just library code.

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

No branches or pull requests

2 participants