Recompiling TRNSYS 15 as a "console application" for use on non-windows operating systems is possible. However, you will lose a number of TRNSYS features such as the online plotter and the ability for TRNSYS to call other Windows programs. To recompile in this format, you will need a Fortran 90 compiler
The following combinations of operating systems and FORTRAN compilers have been tested:
WinNT (95/98/2000) | Compaq Visual Fortran |
Salford FTN 95 | |
Lahey Fortran 90 | |
Linux | PGI90 (Portland Group) |
Lahey/Fujitsu LF95 | |
Unix | IBM F90 |
Console applications do not allow to use the ONLINE (TYPE 65) component. Only the CVF90 compiler allows calls to external WINDOWS DLLs or WINDOWS applications. Consequently, you will not be able to use TYPE 61, TYPE 66, userlib.for, or refprop.for.
Normally, when setting up a project to recreate the trnlib.dll for use on a Windows operating system, the user places all files in the \trnsys15\kernal and \trnsys15\types directory into the project. For recompiling as a console application, the user will replace one file with a version specific to their compiler.
trnsys_ibm_f90.for
trnsys_linux_lf95.for
trnsys_win32_ftn95.for
trnsys_win32_lahey.for
depending upon the operating system and compiler being used. These files will can be found in the \trnsys15\kernal\OS_Comp\ directory of your standard TRNSYS installation. If you cannot locate them, ask your TRNSYS distributor for assistance.
Example:
To create a version of TRNSYS that will run under LINUX using the Lahey/Fujitsu LF95 compiler, use the following files:
The following files should be removed from the project.
Furthermore, the following files from the standard distribution should be removed as they use Windows specific features.
A Couple of Notes Concerning LINUX