Skip to content

Refactor: Remove Some Unused or Deprecated YAML Inputs#75

Merged
sdeastham merged 15 commits intoMIT-LAE:mainfrom
Calebsakhtar:bugfix/yaml-inputs
Aug 7, 2025
Merged

Refactor: Remove Some Unused or Deprecated YAML Inputs#75
sdeastham merged 15 commits intoMIT-LAE:mainfrom
Calebsakhtar:bugfix/yaml-inputs

Conversation

@Calebsakhtar
Copy link
Copy Markdown
Contributor

@Calebsakhtar Calebsakhtar commented Aug 7, 2025

Summary

Following #74, a few locations which still use inputs from the input.yaml file (but should not be doing so) were identified. This minor refactor removes some clutter from the input.yaml file to improve the user experience. This PR is backwards compatible, so no action is required for users using old input.yaml files after updating to this version.


Refactoring Details

From the METEOROLOGICAL PARAMETERS SUBMENU, the following parameters were removed in the input.yaml file:

  1. Temperature [K] (double)
  2. R.Hum. wrt water [%] (double)
  3. Wind shear [1/s] (double)

Removed the following submenus and bools from the input.yaml:

  1. HUMIDITY SCALING OPTIONS
  2. IMPOSE MOIST LAYER DEPTH SUBMENU
  3. IMPOSE LAPSE RATE SUBMENU
  4. Add diurnal variations (T/F)

The rest of the changes involve the following:

  • Changing YamlInputReader to omit these terms, and deleted the corresponding member variables from Input_Mod
  • Renamed satdepthUser and satdepthEstimate to reflect that this comes from the meteorology
  • Deleted the struct AmbientMetParams
  • Deleted the unused Input constructor
  • Added setter methods to Input for the temperature and relative humidity
  • Restructured the LAGRIDPlumeModel constructure to ensure compatibility with the current setup
  • Other minor changes

Results

The following results apply to a 500m deep moist layer test case

Table 1: Table showing the change in integral quantities over the lifetime of the contrail.

Integrated Variable Baseline After Changes Percent Difference
N, # / m 23800000000000.0 23800000000000.0 0.0
Total Extinction, m 10300.0 10300.0 0.0
I, kg of ice / m 57.3 57.3 0.0

Figure 1: Table showing the time evolution of contrail variables before and after the changes
comparison


Discussion and Conclusion

Table 1 and Figure 1 show no changes to the integrated quantities or the contrail behaviour. The tests were run using a input.yaml from the previous version, so no compatibility or performance issues have been identified.

@Calebsakhtar Calebsakhtar marked this pull request as ready for review August 7, 2025 17:36
@Calebsakhtar
Copy link
Copy Markdown
Contributor Author

@sdeastham This PR is now ready for your review. Thanks in advance!

@sdeastham
Copy link
Copy Markdown
Collaborator

Confirmed zero diff for the standard test. Approved to go in.

@sdeastham sdeastham merged commit 156ed99 into MIT-LAE:main Aug 7, 2025
@Calebsakhtar Calebsakhtar deleted the bugfix/yaml-inputs branch August 8, 2025 07:40
@lrobion lrobion mentioned this pull request Mar 27, 2026
AlphaBetaGammaChi pushed a commit to AlphaBetaGammaChi/HAPCEMM-Chem that referenced this pull request Apr 11, 2026
* Remove unnecessary inputs from Meteorology

* Modify the Input object in LAGRID initialization

* Remove legacy error message in Main

* Clean up the Input constructor and methods

* Remove unused options from the yaml file

* Include the change in the plume model header

* Remove a const expression

* Initialize the input

* Remove a met argument in Aircraft

* Remove a rogue comma

* Remove an invalid variable reference

* Remove a TODO that has been addressed

* Rename userDepth and force depth to be from met

* Make the variables not const in the wrappers

* Remove a const from the main
AlphaBetaGammaChi pushed a commit to AlphaBetaGammaChi/HAPCEMM-Chem that referenced this pull request Apr 11, 2026
* Remove unnecessary inputs from Meteorology

* Modify the Input object in LAGRID initialization

* Remove legacy error message in Main

* Clean up the Input constructor and methods

* Remove unused options from the yaml file

* Include the change in the plume model header

* Remove a const expression

* Initialize the input

* Remove a met argument in Aircraft

* Remove a rogue comma

* Remove an invalid variable reference

* Remove a TODO that has been addressed

* Rename userDepth and force depth to be from met

* Make the variables not const in the wrappers

* Remove a const from the main
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

Successfully merging this pull request may close these issues.

2 participants