Selecting your Compiler for Fortran Code and C-Code

This article is intended to help users to select a Fortran and C-code compiler for use with PSCAD.

PSCAD uses a Fortran compiler and a C-compiler to compile Fortran code and C-code into executable files, which are launched to perform the numerical calculations for the simulation. These results are sent to PSCAD during the simulation for display.

Two compilers are available for use with PSCAD, GFortran and the Intel® Parallel Studio Composer Edition for Fortran for Windows.

GFortran

GFortran is a third-party compiler that is available to PSCAD users for free. The GFortran compiler compiles both Fortran code and C-code, and is suitable for small to medium-sized projects.

GFortran – Selecting a Suitable Version

The following should be considered for selecting the most suitable version of GFortran:

  • Compatibility with pre-compiled libraries or object files (if any): See this article.

Note
The supported version should normally be specified by the supplier of the pre-compiled files.

  • Compatibility with PSCAD: See Chart 2.a of the PSCAD Compatibility Charts document, posted here.

Note
There are three versions of GFortran, each supported with specified versions of PSCAD.

GFortran - Setting up Software

Setup information for GFortran is available on this page.

Intel® Parallel Studio Composer Edition for Fortran for Windows

The Intel® Parallel Studio Composer Edition for Fortran for Windows (IVF) is a third-party, commercially available software that is recommended for compiling larger and more complex PSCAD projects due to its superior simulation speed, debugging environment and optimization features. IVF compiles projects faster than GFortran, and also produces simulations that run up to 25% faster than GFortran. IVF is used to compile Fortran code and C-code in conjunction with another third-party software, Microsoft® Visual Studio (VS), due to its dependency on VS tools. Information on selecting and obtaining a suitable edition and version of VS is available in Selecting your Microsoft® Visual Studio Software.

IVF – Selecting a Suitable Version

The following should be considered for selecting the most suitable version of IFV:

  • Compatibility with pre-compiled libraries or object files (if any): See this article.

Note
The supported versions should normally be specified by the supplier of the pre-compiled files.

  • Compatibility with PSCAD: See Chart 2.a of the PSCAD Compatibility Charts document, posted here.
  • Compatibility with VS: See Chart 4 of the PSCAD Compatibility Charts document, posted here.
  • Whether VS Shell Edition comes bundled: See Chart 5 of the PSCAD Compatibility Charts document, posted here.

IVF – Selecting a Suitable Edition

The Composer edition is the recommended edition. However, the Professional edition and the Cluster edition are also suitable.

IVF - Selecting the 32-bit or 64-bit Edition

The first consideration is compatibility when sharing pre-compiled objects and libraries. Pre-compiled objects and libraries may only be run using the same edition type:

  • The 32-bit edition is compatible for running files pre-compiled with the 32-bit edition
  • The 64-bit edition is compatible for running files pre-compiled with the 64-bit edition

Currently, it appears that most manufacturers provide 32-bit libraries.

The second consideration is project size: The 64-bit edition should be selected for extremely large simulations.

Please note that speed is not a consideration for this section: The 64-bit edition is slightly faster than the 32-bit edition, but not by a significant amount.

IVF – Selecting a Suitable License Type

Two types of licenses for IVF are available, named-user and floating. The named-user license is owned and used by one user. A floating license is hosted on the customer’s server, and shared with client machines over the network. Further information on IVF licensing is available on this webpage.

IVF - Obtaining a License

Both the named-user and floating licenses may be purchased through Intel. A named-user license may also be purchased through MHI (sales@pscad.com).

IVF – Active Product Support

Please refer to this webpage regarding IVF licensing and "Active Product Support”.

IVF - Setting up the Software

Information on setting up the IVF and VS software for use with PSCAD is available on this webpage. This information pertains to the IVF Licensed edition, as well as to the free time-limited IVF Trial Edition.

Please feel free to contact the MHI Support Desk if you have any questions (support@mhi.ca).

Back