EnergyPlusFortran

EnergyPlusFortran

EnergyPlusFortran is a fork of NREL's EnergyPlusRelease Fortran version 8.1.0.009. Some of the missing files which could not be located in the original repository above, were added from the nrgsim EnergyPlus-Fortran repository and SQLite.

EnergyPlusFortran compiles the standalone EnergyPlus™ program energyplus plus a static library (libenergyplus.a) containing all public functions.

Build instructions for Windows, Linux and macOS

To build the EnergyPlus™ executable and library, run the following commands:

$ mkdir build && cd build
$ cmake ..
$ cmake --build .

The energyplus program and the libenergyplus.a library can be found in the build folder after compilation.

Tested Environments

EnergyPlusFortran was tested to work on the following systems:

  • Windows: Visual Studio 2010 or above with Intel® Parallel Studio XE 2013 or above and Visual Studio Integration
  • Linux: Intel® Parallel Studio XE 2013 or above, or GCC with gfortran 4.8 or above
  • macOS: Intel® Parallel Studio XE Composer Edition for Fortran macOS 2013 or above, or GCC with gfortran 4.8 or above

Note for Windows Users

Make sure you have installed the Intel® Visual Studio Integration plugins or CMake will not be able to identify your compiler (No CMAKE_Fortran_COMPILER could be found error). Make sure that you use Intel® Command-Line Window when launching CMake - The Intel® compiler provides a command-line window with the appropriate environment variables already set (see: Using the Intel® Command-Line Window). You may also need to specify the generator flag -G in CMake; for example, if you are using Intel® Command-Line Window for Visual Studio 2010, then the CMake command should now be cmake -G "Visual Studio 10 2010" ... For more information on how to specify generators in CMake see cmake-generators.

Additional Notes

The instructions outlined above are for compiling EnergyPlus™ without the External Interface (ExternalInterface.f90 was renamed ExternalInterface.f90_off).