Updating the Compiler Configuration File for PSCAD - For PSCAD Version 4 and v5.0
A configuration file is installed alongside PSCAD, fortran_compiler.xml. This file helps PSCAD to detect and use the installed FORTRAN compilers, including Intel Fortran compiler and GFortran.
As newer versions of Intel are regularly released, the fortran_compiler.xml file becomes outdated, and cannot detect these newer releases. This article contains instructions for updating this file, both automatically and manually.
1. Automatic Update of the Fortran Configuration File Using the Fortran Medic Utility
This is the preferred method for updating this file.
Note - Windows Administrator privileges are required for this procedure.
-
Download the Fortran Medic Utility from the following link: https://ptcstoragegroup.blob.core.windows.net/utilities/FortranMedic.zip
-
Unzip/extract the files.
-
Launch the Fortran Medic Utility with Windows Administrator privileges, as shown:
-
Select “Yes” when prompted by the Windows User Account Control, to elevate the Utility.
-
When the Fortran Medic Utility displays, select "Start" from the Actions menu.
-
Wait for the results to finish displaying (this can sometimes take up to a minute or two).
-
When the results finish displaying, scroll down to the PSCAD installation heading, right-click on the conflict if present (see example below). A dialog will display, prompting you to confirm whether to proceed with this fix. Select the option to proceed to update the PSCAD configuration File.
- Perform this procedure for every applicable version of PSCAD (v4.6.3, v5.0.0, v5.0.1, v5.0.2).
Notes
(i) Applying this fix will also add a setvars-ifort.bat file if that file is not already present. The file, as listed below, is required with the newer compiler configuration file, when using the Intel Fortran compiler v19.2 (ifort).
C:\Program Files (x86)\Intel\oneAPI\setvars-ifort.bat
(ii) The error will still remain listed in the Utility after you have fixed it. The Utility will need to be restarted to be able to verify that the issue is no longer detected (go Actions | Start, then scroll down to the PSCAD heading/s).
2. Manual Update of the Fortran Compiler Configuration File
Notes
(i) Windows Administrator privileges are required for this procedure.
(ii) Step 1 is the preferred method to update the file, to help ensure a successful replacement.
- Delete or rename your existing (and possibly outdated) Fortran compiler configuration file.
This file would be located in your PSCAD installation folder, which would be similar to one of the following locations:
- If using PSCAD X4: C:\Program Files (x86)\PSCAD46
- If using PSCAD V5: C:\Program Files (x86)\PSCAD50 - Download the newest Fortran compiler configuration file corresponding to your PSCAD version, posted to the bottom of this current article.
Attention - Download the file to somewhere requiring "normal user" permissions (e.g. desktop, documents...). - Unzip the downloaded file.
Attention - Unzip the file to somewhere requiring "normal user" permissions (e.g. desktop, documents...). - Move the unzipped file to your PSCAD installation folder (located as specified in the above paragraph).
- The newest Fortran compiler configuration file should now be available for use by PSCAD.
- If you will be using the Intel Fortran Classic Compiler v19.2 (ifort), refer to this article for information on a new file that is required alongside the newer Fortran compiler configuration file.