-
Notifications
You must be signed in to change notification settings - Fork 394
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
Fix Alternate Configurations Build #8696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code walkthrough
-OPENGL_REQUIRED=OFF \ | ||
-USE_PSYCH_STATS=ON \ | ||
-USE_PSYCH_ERRORS=OFF \ | ||
-DOPENGL_REQUIRED=OFF \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how this worked before, but this should be the right way to do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitchute without these two USE_PSYCH* lines, is it still exercising the code that depends on those two variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonGlazer no, those variables are not used without those CMake flags.
@@ -136,6 +136,12 @@ struct PsychrometricCacheData : BaseGlobalStruct | |||
Array1D<cached_tsat_h_pb> cached_Tsat_HPb; // DIMENSION(0:tsat_hbp_cache_size) | |||
#endif | |||
|
|||
#ifdef EP_psych_stats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving these over to PsychCacheData to avoid circular references
@@ -712,7 +708,7 @@ namespace Psychrometrics { | |||
|
|||
Real64 PsyPsatFnTemp(EnergyPlusData &state, | |||
Real64 const T, // dry-bulb temperature {C} | |||
std::string const &CalledFrom // routine this function was called from (error messages) | |||
[[maybe_unused]] std::string const &CalledFrom // routine this function was called from (error messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silence warning
src/EnergyPlus/PsychCacheData.hh
Outdated
@@ -136,6 +136,12 @@ struct PsychrometricCacheData : BaseGlobalStruct | |||
Array1D<cached_tsat_h_pb> cached_Tsat_HPb; // DIMENSION(0:tsat_hbp_cache_size) | |||
#endif | |||
|
|||
#ifdef EP_psych_stats | |||
// EnergyPlus::Psychrometrics::NumPsychMonitors = 19 | |||
Array1D<Int64> NumTimesCalled = Array1D<Int64>(19, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Myoldmopar this could use a review. I tried including Psychrometrics.hh
in this file so I could create the array using the reference to NumPsychMonitors
, but there must still be something else that is needed. I just hardcoded the number for now to get it going, but I'm happy to change it if you can point me in the right direction.
@mitchute I was just struggling with trying to figure this out yesterday. Thanks so much! |
…rcular references
The CI problems are unrelated to this work. Merging so we can at least get this issue cleaned up on other PRs. |
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.