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

Global siminfo #343

Merged
merged 78 commits into from
Dec 15, 2023
Merged

Global siminfo #343

merged 78 commits into from
Dec 15, 2023

Conversation

jj16791
Copy link
Contributor

@jj16791 jj16791 commented Nov 3, 2023

This PR looks to replace the use of Config.hh and YAML-CPP with SimInfo.hh and a single header yaml library ryml. The SimInfo class acts as a central point for all model configuration values both defined manually and from a read-in yaml config file.

Improvements to adding new config options have been included through a new expectation struct that places requirements on a specific config option and a default value. Through this, default config files can be created and are especially useful in the test suite.

An aside, there seem to be a lot of line changes but ~33K of those are the new header-only ryml library

@FinnWilkinson
Copy link
Contributor

Does this PR invalidate issue #322 ?

@jj16791
Copy link
Contributor Author

jj16791 commented Nov 6, 2023

Does this PR invalidate issue #322 ?

The direct define mentioned yes but there are some new defines which can benefit from the suggested change. See commit ea3e85a

Copy link
Contributor

@dANW34V3R dANW34V3R left a comment

Choose a reason for hiding this comment

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

Lots of things improved greatly in this PR e.g. definition of base config used for testing. Some minor comments but I generally disagree with Finn on the use of the ">>" operator in most places. I think it is much cleaner and easier to read while using the getter function adds a lot more unnecessary syntax. While ">>" requires 2 lines in lots of places, I don't think this is an issue as the getter line often becomes too long and splits over 2 lines anyway

Copy link
Contributor

@ABenC377 ABenC377 left a comment

Choose a reason for hiding this comment

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

Just a few minor comments -- may not need any changes

@ABenC377 ABenC377 self-requested a review November 9, 2023 16:31
ABenC377
ABenC377 previously approved these changes Nov 10, 2023
Copy link
Contributor

@ABenC377 ABenC377 left a comment

Choose a reason for hiding this comment

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

👍🏻

Copy link
Contributor

@dANW34V3R dANW34V3R left a comment

Choose a reason for hiding this comment

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

Minor comments

@FinnWilkinson FinnWilkinson added the 0.9.6 Part of SimEng Release 0.9.6 label Dec 14, 2023
Copy link
Contributor

@ABenC377 ABenC377 left a comment

Choose a reason for hiding this comment

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

Only one question

ABenC377
ABenC377 previously approved these changes Dec 14, 2023
Copy link
Contributor

@FinnWilkinson FinnWilkinson left a comment

Choose a reason for hiding this comment

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

A few Minor points

@jj16791 jj16791 requested a review from dANW34V3R December 15, 2023 17:14
@jj16791 jj16791 merged commit 7bbf87d into dev Dec 15, 2023
@FinnWilkinson FinnWilkinson deleted the global-siminfo branch February 21, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.6 Part of SimEng Release 0.9.6 enhancement New feature or request
Projects
Archived in project
5 participants