Skip to content

Enabled use of yaml format for ini files#167

Open
wilfchun wants to merge 28 commits into
developfrom
feature/ini-to-yaml
Open

Enabled use of yaml format for ini files#167
wilfchun wants to merge 28 commits into
developfrom
feature/ini-to-yaml

Conversation

@wilfchun

@wilfchun wilfchun commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

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.yaml file first and falls back to the traditional cme.ini file 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:

  • The bReadIniFile method in CSimulation now attempts to read a cme.yaml file first; if that fails, it falls back to the existing .ini file logic. This improves configuration flexibility and future-proofs the initialization process.
  • A new method, bReadIniYamlFile, is implemented in CSimulation to handle parsing and validation of the YAML initialization file, including reading input data file, output path, and optional email address.
  • The class interface in simulation.h is updated to declare the new bReadIniYamlFile method.
  • A new constant CME_YAML is introduced to represent the YAML configuration filename.

@wilfchun wilfchun changed the title Enabled use of yaml for mat for ini files Enabled use of yaml format for ini files Nov 14, 2025
@wilfchun wilfchun added enhancement New feature or request feature labels Nov 14, 2025
@wilfchun wilfchun force-pushed the feature/ini-to-yaml branch from f7384fa to f070468 Compare November 14, 2025 13:47
@wilfchun wilfchun changed the base branch from main to develop November 14, 2025 13:48
@wilfchun wilfchun marked this pull request as ready for review November 14, 2025 13:52
davefavismortlock and others added 5 commits November 22, 2025 12:04
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants