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

Don't create new sections during parsing #16704

Merged

Conversation

peterrum
Copy link
Member

Comment on lines +2 to +5
{
"test 0": "1",
"test 1": "1"
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output looked like this:

{
    "test 0": "1",
    "test 1": "1",
    "test 3": ""
}

doc/news/changes/minor/20240229Munch Outdated Show resolved Hide resolved
Comment on lines +2 to +7
"test 0": "1",
"test 1": "1",
"test 2": "1",
"test 3": {
"test 4" : "1"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what is happening with this test. You only declare parameters test 0 and test 1. How come we accept this as a valid input file? Is it because we read the whole file and then go through our own parameters to see which ones have been read, ignoring everything that has been read but does not correspond to our own parameters?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. The ignoring works well for the parameters but not for the sections with the result that new sections are created.

@peterrum peterrum force-pushed the parameterhandler_create_path_if_needed branch from fc403ae to f9a83e3 Compare March 7, 2024 07:50
@masterleinad masterleinad merged commit cbf152c into dealii:master Mar 7, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants