Conversation
Myoldmopar
left a comment
There was a problem hiding this comment.
Should be an effectively non-functioning change, isolated to the GLHE codebase. Assuming no diffs, I'd like to merge this right in and continue on the functional changes.
cmake/PythonInstallCLITools.py
Outdated
|
|
||
| # expecting one command line argument - the path to the python_lib folder to place the pip package | ||
| pkgs = {'energyplus_launch': '3.7.4', 'energyplus_transition_tools': '2.1.4'} | ||
| pkgs = {'energyplus_launch': '3.7.4', 'energyplus_transition_tools': '2.1.4', 'ghedesigner': '1.5'} |
There was a problem hiding this comment.
This will be more meaningful in the next PR. I could remove it from here if anyone thinks it is necessary.
|
|
||
| void ShowFatalError(EnergyPlusData &state, std::string const &ErrorMessage, OptionalOutputFileRef OutUnit1, OptionalOutputFileRef OutUnit2) | ||
| [[noreturn]] void | ||
| ShowFatalError(EnergyPlusData &state, std::string const &ErrorMessage, OptionalOutputFileRef OutUnit1, OptionalOutputFileRef OutUnit2) |
There was a problem hiding this comment.
Marking it [[noreturn]] is really nice because that tells compilers that once you call this function, it's over. And that way you don't have to have workarounds of unused code after calls to ShowFatalError.
|
Code Integrity failed because the GitHub Action script for Clang Format didn't like that I removed a file. In the calculation of changed files, it was including the deleted files as modified files to check. But those files don't exist anymore. I think adding |
|
|
|
Myoldmopar
left a comment
There was a problem hiding this comment.
I laid out a bunch of comments, though the TODO's should all be done now with my latest commit.
| -DBUILD_PACKAGE:BOOL=OFF | ||
| -DDOCUMENTATION_BUILD:STRING=DoNotBuild | ||
| -DENABLE_OPENMP:BOOL=OFF | ||
| -DUSE_OpenMP:BOOL=OFF |
There was a problem hiding this comment.
USE_OpenMP was only here for the CpGFunction library. There is still a separate ENABLE_OPENMP from other third party code.
|
|
||
| begin_group "Run clang-format for changes files" | ||
| # Using \0 as a terminator in case we'd ever have files with spaces | ||
| git diff -z --name-only HEAD^ HEAD src/ tst/ \ |
There was a problem hiding this comment.
These --diff-filter=AM changes are so that Git doesn't list "removed" files. Removed files should not be checked in the subsequent steps.
| # Otherwise, if either cpgfunctionEP (yes by default) or kiva (no by default) **actually** linked to OpenMP, we need to ship the libs | ||
| if (NOT ${CMAKE_INSTALL_OPENMP_LIBRARIES} AND (${USE_OpenMP} OR ${ENABLE_OPENMP})) | ||
| # Otherwise, if kiva (no by default) **actually** linked to OpenMP, we need to ship the libs | ||
| if (NOT ${CMAKE_INSTALL_OPENMP_LIBRARIES} AND (${ENABLE_OPENMP})) |
There was a problem hiding this comment.
No more USE_OpenMP, so cleans this logic up.
|
|
||
| # expecting one command line argument - the path to the python_lib folder to place the pip package | ||
| pkgs = {'energyplus_launch': '3.7.4', 'energyplus_transition_tools': '2.1.4'} | ||
| pkgs = {'energyplus_launch': '3.7.4', 'energyplus_transition_tools': '2.1.4', 'ghedesigner': '2.0'} |
There was a problem hiding this comment.
Add in the ghedesigner 2.0 release!
| \begin{enumerate} | ||
| \item Use the \hyperref[groundheatexchangerverticalarray]{GroundHeatExchanger:Vertical:Array} object to define a rectangular borehole field. EnergyPlus will compute and cache the g-functions for reuse again in future simulations. | ||
| \item Use one or more \hyperref[groundheatexchangerverticalsingle]{GroundHeatExchanger:Vertical:Single} objects to define a vertical borehole field with the boreholes located arbitrarily. EnergyPlus will compute and cache the g-functions for reuse again in future simulations. | ||
| \item Use the \hyperref[groundheatexchangerverticalarray]{GroundHeatExchanger:Vertical:Array} object to define a rectangular borehole field. |
There was a problem hiding this comment.
OK, so the g function caching would be incredibly problematic.
- In the "current" state of things, the g-function depended on the GLHE physical properties. So it was very easy to develop a unique cache key based on the input fields for the GLHE.
- But as we are going to be developing GLHE field designs based on plant loads, the field could be different for literally any input that affects the building or systems. The GLHE caching was simply not worth having anymore because every different run would result in a changed g-function. So we have removed g-function caching, which has cleaned up a whole bunch of code.
There was a problem hiding this comment.
This file captures as much of the common GLHE base class functionality as possible.
| } | ||
| } | ||
|
|
||
| } // namespace EnergyPlus::GroundHeatExchangers No newline at end of file |
There was a problem hiding this comment.
TODO: Missing newline.
| ShowFatalError(state, "Preceding errors cause program termination"); | ||
| } | ||
|
|
||
| } // namespace EnergyPlus::GroundHeatExchangers No newline at end of file |
There was a problem hiding this comment.
TODO: Missing newline.
| ShowFatalError(state, "Preceding errors cause program termination"); | ||
| } | ||
|
|
||
| } // namespace EnergyPlus::GroundHeatExchangers No newline at end of file |
There was a problem hiding this comment.
TODO: Missing newline...how are these happening?
|
|
Alright, I'm merging this. I don't anticipate any issue on Windows, but I'll resolve them quickly if anything pops up that wasn't caught here. |

Pull request overview
This takes the huge GroundHeatExchangers hh and cc files and breaks them into meaningful pieces. The next steps on this include updating the physics model and including GHEDesigner for GLHE auto sizing. I've got the GHEDesigner stuff underway, but I'm running into an issue with the results, so I want to get this big changeset merged in with (I believe) no diffs. Then it will be easier to feel confident in the model changes, since they may have some small numeric diffs.
Description of the purpose of this PR
Pull Request Author
Reviewer