Skip to content
New issue

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

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

Already on GitHub? # to your account

Move input files from gio #8162

Merged
merged 22 commits into from
Jul 25, 2020
Merged

Move input files from gio #8162

merged 22 commits into from
Jul 25, 2020

Conversation

lefticus
Copy link
Contributor

@lefticus lefticus commented Jul 18, 2020

Pull request overview

  • Move input files from gio to iostream
  • No expected test failures or changes
  • Remove all gio::stat and gio::open calls
  • Remove associated gio files

Note: I changed the name of a parameter from outputFiles to files and this has caused a lot of conflicts in overlapping API's with @brianlball 's changes.

At the moment there are no conflicts. If one arises during PR review I'm happy to correct it.

@lefticus lefticus marked this pull request as draft July 18, 2020 03:32
@lefticus
Copy link
Contributor Author

I just noticed that there is a failure on Windows that needs to be addressed.

@Myoldmopar Myoldmopar added the Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring label Jul 20, 2020
@Myoldmopar
Copy link
Member

One file showing diffs is GPU, that is unrelated to this. Custom check had a warning due to a missing label, so I added refactoring. This is otherwise clean according to CI.

There still aren't any conflicts, which is great. I'm quite excited about this change, what is your status? It is still marked draft, so I don't want to spend too much time digging in until it's ready.

@lefticus
Copy link
Contributor Author

lefticus commented Jul 20, 2020

I was just waiting to make sure the CI came back clean because of the Windows fix I made. I ran cursory tests manually but didn't want to wait to run full Linux and Windows tests on my system.

From my perspective, now that it looks good on the CI, it's good to go.

@lefticus lefticus marked this pull request as ready for review July 20, 2020 21:28
@Myoldmopar
Copy link
Member

@lefticus this branch got wildly conflicted with another branch just that merged (mine). I'm currently resolving them in this branch and will push later today. I'll let you know if I have any issues, but assuming I don't, and CI is happy upon my commit, then I think this is likely to drop soon.

@Myoldmopar
Copy link
Member

Now the 10.13 Macbook decided to not report. At least 10.15 is reliable. 🤷

CI is super happy here. I'm going to look it over but I already built and ran tests locally and things were good there.

Copy link
Member

@Myoldmopar Myoldmopar left a comment

Choose a reason for hiding this comment

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

No major concerns here. Ready for this to drop in. Thanks @lefticus!

OutputFiles.cc
OutputFiles.hh
IOFiles.cc
IOFiles.hh
Copy link
Member

Choose a reason for hiding this comment

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

Indent fixes here would be good if anything else needs changing, otherwise it is fine.

@@ -16767,7 +16771,7 @@ namespace DXCoils {
if (present(CoilIndex)) {
CoilNum = CoilIndex;
} else {
GetDXCoilIndex(state, CoilName, CoilNum, ErrorsFound);
GetDXCoilIndex(state, CoilName, CoilNum, ErrorsFound, ObjexxFCL::Optional_string_const(), ObjexxFCL::Optional_bool_const());
Copy link
Member

Choose a reason for hiding this comment

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

I noticed a lot of places where you passed in explicit values where it was previously relying on the default _ variable. Any particular reason? Performance?

@@ -147,11 +145,13 @@ namespace EnergyPlus {
ZoneTempPredictorCorrectorData dataZoneTempPredictorCorrector;

EnergyPlusData() {
OutputFiles::setSingleton(&outputFiles);
// todo, try to eliminate the need for the singleton
Copy link
Member

Choose a reason for hiding this comment

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

This is todo for a later branch, I presume.


namespace EnergyPlus {

class InputFile
Copy link
Member

Choose a reason for hiding this comment

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

This is really great!

@@ -197,12 +189,7 @@ set(src
src/ObjexxFCL/SetWrapper.hh
src/ObjexxFCL/Sticky.fwd.hh
src/ObjexxFCL/Sticky.hh
src/ObjexxFCL/Stream.cc
Copy link
Member

Choose a reason for hiding this comment

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

Nice.

@Myoldmopar Myoldmopar merged commit 2b65de0 into develop Jul 25, 2020
@Myoldmopar Myoldmopar deleted the move_input_files_from_gio branch July 25, 2020 00:22
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants