Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default value for OpaqueSkyCover when missing #8612

Merged
merged 5 commits into from
Mar 19, 2021

Conversation

matthew-larson
Copy link
Contributor

@matthew-larson matthew-larson commented Mar 11, 2021

Pull request overview

Pull Request Author

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions

Reviewer

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • CI status: all green or justified
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally

@matthew-larson matthew-larson added Defect Includes code to repair a defect in EnergyPlus NotIDDChange Code does not impact IDD (can be merged after IO freeze) labels Mar 11, 2021
@matthew-larson matthew-larson added this to the EnergyPlus 9.5.0 milestone Mar 11, 2021
@matthew-larson matthew-larson self-assigned this Mar 11, 2021
@matthew-larson matthew-larson marked this pull request as ready for review March 19, 2021 17:32
if (OpaqueSkyCover >= 99.0) {
OpaqueSkyCover = state.dataWeatherManager->Missing.OpaqSkyCvr;
}

Copy link
Member

Choose a reason for hiding this comment

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

No problem setting these to the predefined missing values.

Real64 expected_ESky = (0.787 + 0.764 * std::log(TDewK / DataGlobalConstants::KelvinConv)) * (1.0 + 0.0224 * expected_OSky - 0.0035 * pow_2(expected_OSky) + 0.00028 * pow_3(expected_OSky));;

EXPECT_NEAR(expected_ESky, km.kivaWeather.skyEmissivity[0], 0.01);
}
Copy link
Member

Choose a reason for hiding this comment

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

👍

@Myoldmopar
Copy link
Member

Pulled develop and built and ran unit tests, all good. Changes look good. Merging.

@Myoldmopar Myoldmopar merged commit 9877239 into NREL:develop Mar 19, 2021
@matthew-larson matthew-larson deleted the fix-kiva-osky branch March 20, 2021 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Includes code to repair a defect in EnergyPlus NotIDDChange Code does not impact IDD (can be merged after IO freeze)
Projects
None yet
7 participants