Skip to content

Allow photochemistry schemes to have parameters at different times.#286

Closed
DWesl wants to merge 3 commits into
ufs-community:ufs/devfrom
DWesl:photochemistry-index-fix
Closed

Allow photochemistry schemes to have parameters at different times.#286
DWesl wants to merge 3 commits into
ufs-community:ufs/devfrom
DWesl:photochemistry-index-fix

Conversation

@DWesl
Copy link
Copy Markdown

@DWesl DWesl commented May 22, 2025

In particular, allow the ozone scheme to have two extra sets of parameters during the ozone hole without crashing the model.

An update to #223/#213 to keep the model from crashing after NOAA-EMC/global-workflow#3386

In particular, allow the ozone scheme to have two extra sets of parameters during the ozone hole without crashing the model.
call ozphys%update_o3prog(jindx1_o3, jindx2_o3, ddy_o3, rjday, n1, n2, ozpl)
endif

call find_photochemistry_index(h2ophys%ntime, h2ophys%time, rjday, n1, n2)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this line should move inside if (h2o_phys) then?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I moved all calls inside the relevant conditional, does that work?

With a separate index for each photochemistry scheme, we can move the index-finding calls
in the conditional for the photochemistry scheme.
@DWesl DWesl marked this pull request as ready for review May 27, 2025 15:01
DWesl added a commit to DWesl/fv3atm that referenced this pull request May 28, 2025
DWesl added a commit to DWesl/ufs-weather-model that referenced this pull request May 28, 2025
@DWesl
Copy link
Copy Markdown
Author

DWesl commented May 28, 2025

Merged into #265

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.

3 participants