Enabled use of yaml format for ini files#167
Open
wilfchun wants to merge 28 commits into
Open
Conversation
This is to brevent build warning about fortify source
f7384fa to
f070468
Compare
Major changes: - YAML configuration file support (cme.yaml) - Full feature migration to YAML parsing - Time-varying wave data support in YAML - Depth of closure improvements - CShore bug fixes - Performance optimizations - Bug fixes for talus and cliff collapse Updated version to 1.4.0 in cme.h, README.md, and CHANGES. Added comprehensive release notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for reading initialization files in YAML format, enhancing the flexibility of configuration loading for the application. The code now attempts to read a
cme.yamlfile first and falls back to the traditionalcme.inifile if the YAML file does not exist or cannot be parsed. The main changes include updates to the initialization logic, the addition of a YAML parsing routine, and related constant and interface updates.YAML initialization file support:
bReadIniFilemethod inCSimulationnow attempts to read acme.yamlfile first; if that fails, it falls back to the existing.inifile logic. This improves configuration flexibility and future-proofs the initialization process.bReadIniYamlFile, is implemented inCSimulationto handle parsing and validation of the YAML initialization file, including reading input data file, output path, and optional email address.simulation.his updated to declare the newbReadIniYamlFilemethod.CME_YAMLis introduced to represent the YAML configuration filename.