Skip to content

Conversation

@chipbarnaby
Copy link
Contributor

@chipbarnaby chipbarnaby commented Feb 27, 2024

Description

Correct the derivation of day of week during warmup that occurs in the year prior to the main simulation. This is a common case -- when the main simulation starts on Jan-1, the warmup period would typically be Dec-15 - Dec-31. With this fix, the expected day of week sequence is maintained over the Dec-31 -> Jan-1 boundary.

Also added a check on wuDays that limits it to 365 days.

Interestingly, this changed resulted in many regression differences, some surprisingly large. The cause of these changes turned out to be the relatively sloppy airnet tolerances typically used in CA compliance runs (anTolAbs = 0.03 and anTolRel = 0.003). This input was dropped from the regression input files (leaving the tolerances at the default anTolAbs = 0.00125 and anTolRel = 0.0001) and the regression differences were negligible. However, many regression files are updated.

Expanded documentation for wuDays and jan1DOW.

@nealkruis nealkruis merged commit 885f523 into main Feb 28, 2024
@nealkruis nealkruis deleted the warmup-jan1DOW-fix branch February 28, 2024 00:31
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