Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,6 @@ endif()

# EnergyPlus

if((DEFINED ENERGYPLUS_EXE) AND NOT (ENERGYPLUS_EXE STREQUAL ""))
get_filename_component(OLD_ENERGYPLUS_EXTRACTED_DIR "${ENERGYPLUS_EXE}" DIRECTORY)
message("OLD_ENERGYPLUS_EXTRACTED_DIR=${OLD_ENERGYPLUS_EXTRACTED_DIR}")
endif()

if(UNIX)
if(APPLE)
set(ENERGYPLUS_EXPECTED_HASH 0bf64f4b153a87c3a4822321bc5878e1)
Expand Down Expand Up @@ -601,10 +596,6 @@ if(UNIX)
EXPECTED_MD5 ${ENERGYPLUS_EXPECTED_HASH})
endif()

# Remove the old extracted dir if exists
if(DEFINED OLD_ENERGYPLUS_EXTRACTED_DIR)
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${OLD_ENERGYPLUS_EXTRACTED_DIR}")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${PROJECT_BINARY_DIR}/${ENERGYPLUS_PATH}")

endif()
Expand All @@ -630,16 +621,30 @@ elseif(WIN32)
SHOW_PROGRESS
EXPECTED_MD5 ${ENERGYPLUS_EXPECTED_HASH})

# Remove the old extracted dir if exists
if(DEFINED OLD_ENERGYPLUS_EXTRACTED_DIR)
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${OLD_ENERGYPLUS_EXTRACTED_DIR}")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${PROJECT_BINARY_DIR}/${ENERGYPLUS_PATH}")

endif()

endif()

if((DEFINED ENERGYPLUS_EXE) AND NOT (ENERGYPLUS_EXE STREQUAL ""))
get_filename_component(OLD_ENERGYPLUS_EXTRACTED_DIR "${ENERGYPLUS_EXE}" DIRECTORY)
if(NOT "${OLD_ENERGYPLUS_EXTRACTED_DIR}" MATCHES ".*${ENERGYPLUS_PATH}.*")

message(STATUS "Removing old extracted dir = ${OLD_ENERGYPLUS_EXTRACTED_DIR}")
# Remove the old extracted dir
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${OLD_ENERGYPLUS_EXTRACTED_DIR}")

# Unset variables so that FindEnergyPlus is called again
unset(ENERGYPLUS_FOUND CACHE)
unset(ENERGYPLUS_EXE CACHE)
unset(ENERGYPLUS_IDD CACHE)
unset(ENERGYPLUS_WEATHER_DIR CACHE)

endif()
endif()


# Allows placing the archive manually in the build dir too
if (NOT EXISTS "${ENERGYPLUS_PATH}")
unset(ENERGYPLUS_FOUND CACHE)
Expand Down
1 change: 1 addition & 0 deletions resources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ set(utilities_resources_src
utilities/SqlFile/1ZoneEvapCooler-V9-2-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-3-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-4-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-5-0.sql
utilities/Zip/test1.zip
)

Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/5ZoneAirCooled/in.idf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
! Environmental Emissions: None
! Utility Tariffs: None

Version,9.4;
Version,9.5;

Building,
Building, !- Name
Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/BestestEx/in.idf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
!BESTEST-EX Case L200EX-PH BASE-CASE, developed by NREL
!Use EnergyPlus IDFEditor to view inputs in IP units

Version,9.4;
Version,9.5;

SimulationControl,
No, !- Do Zone Sizing Calculation
Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/Daylighting_Office/in.idf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
! schedule types, always on schedule, misc
! ***GENERAL SIMULATION PARAMETERS***

Version,9.4;
Version,9.5;

SimulationControl,
YES, !- Do Zone Sizing Calculation
Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/Daylighting_School/in.idf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
! WeatherFileName=USA_CO_Boulder_TMY2.epw
! End SimMetaData

Version,9.4;
Version,9.5;

Timestep,6;

Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/HospitalBaseline/in.idf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
! End SimMetaData
! Number of Zones: 130

Version,9.4;
Version,9.5;

Timestep,6;

Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/NewFileTemplate.idf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!- =========== ALL OBJECTS IN CLASS: VERSION ===========

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: BUILDING ===========

Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/Office_With_Many_HVAC_Types/in.idf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version,9.4;
Version,9.5;

Building,
Building 1, !- Name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
! ***GENERAL SIMULATION PARAMETERS***
! Number of Zones: 19

Version,9.4;
Version,9.5;

SimulationControl,
YES, !- Do Zone Sizing Calculation
Expand Down
2 changes: 1 addition & 1 deletion resources/energyplus/ScheduleFile/in.idf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version,9.4;
Version,9.5;

Timestep,4;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
! Environmental Emissions: None
! Utility Tariffs: None

Version,9.4;
Version,9.5;

Timestep,4;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
! Basecase reference for SimpleSurfaces_Test
!- =========== ALL OBJECTS IN CLASS: VERSION ===========

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: BUILDING ===========

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
! File to test the import of simple surfaces
!- =========== ALL OBJECTS IN CLASS: VERSION ===========

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: BUILDING ===========

Expand Down
4 changes: 2 additions & 2 deletions resources/energyplus/SmallOffice/SmallOffice.idf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
! ExtWallConstruction=Mass
! End SimMetaData

Version,9.4;
Version,9.5;

Timestep,6;

Expand Down Expand Up @@ -5814,7 +5814,7 @@

UtilityCost:Tariff,
IN_EIAMonthlyRateGas, !- Name
NaturalGas:Facility, !- Output Meter Name
NaturalGas:Facility, !- Output Meter Name
MCF, !- Conversion Factor Choice
, !- Energy Conversion Factor
, !- Demand Conversion Factor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!- =========== ALL OBJECTS IN CLASS: VERSION ===========

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: BUILDING ===========

Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/CommentTest.idf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
! Written by Elaine T. Hale, 15 September 2010
! Version object should keep up with EnergyPlus version number.

Version,9.4;
Version,9.5;

! Timestep should be > 1.

Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/DosLineEndingTest.idf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
! Written by Elaine T. Hale, 15 September 2010
! Version object should keep up with EnergyPlus version number.

Version,9.4;
Version,9.5;

! Timestep should be > 1.

Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/FormatPropertyTest_Formatted.idf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
!- =========== ALL OBJECTS IN CLASS: VERSION ===========
! \format singleLine

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: HEATBALANCEALGORITHM ===========
! \format singleLine
Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/FormatPropertyTest_Unformatted.idf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
!- =========== ALL OBJECTS IN CLASS: VERSION ===========
! \format singleLine

Version,9.4;
Version,9.5;

!- =========== ALL OBJECTS IN CLASS: HEATBALANCEALGORITHM ===========
! \format singleLine
Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/MixedLineEndingTest.idf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
! Written by Elaine T. Hale, 15 September 2010
! Version object should keep up with EnergyPlus version number.

Version,9.4;
Version,9.5;

! Timestep should be > 1.

Expand Down
2 changes: 1 addition & 1 deletion resources/utilities/Idf/UnixLineEndingTest.idf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
! Written by Elaine T. Hale, 15 September 2010
! Version object should keep up with EnergyPlus version number.

Version,9.4;
Version,9.5;

! Timestep should be > 1.

Expand Down
Loading