For the sake of consistency between builds of EPx and EnergyPlus, it would be helpful to standardize the compiler options used to build the executables.
For EPx, we are currently compiling using gfortran with the following options (a.k.a. flags):
Release Flags: -O -static-libgcc -static-libstdc++ -static-libgfortran
Debug Flags: -g
Both: -cpp -ffree-line-length-none -fimplicit-none
These flags can be modified by editing the
CMakeLists.txt file in the EPx source directory (currently only on the epx_dev branch).
EnergyPlus releases are compiled using Intel Fortran, which has different (though similar) compiler options. However the compiler options are not included with the distributed source code. Can anyone share what flags are used for the official releases?
Also, if you have any experience building EPx/EnergyPlus using other flags that you think are useful, please share those with the group. Hopefully together, we can come to a consensus for a set a flags that can be used for releases and debugging on either compiler.
Thanks!
Neal Kruis