|Contents|| ||NWTC Subroutine Library|
| NWTC Portal
A library of general-use routines used in many NWTC computer-aided engineering tools
by Marshall Buhl
National Wind Technology Center
Over the years, the staff at the NWTC have written many general-purpose routines that we use in many of our codes. In the past, we would copy those needed for any given program from the source of another code. These routines were generally kept in a separate file of the code's archive and had names such as GenSubs, GenUse, and SysVF. We decided that doing it that way was just too much work—especially when we wanted to change one of the routines and have it affect all the codes. So, we decided to create a central set of routines and include their source files in our Fortran projects. Thus, the NWTC Subroutine Library was born.
The NWTC Subroutine Library consists of several Fortran MODULES, each contained in its own source file. If you wish to access any of the data or routines from the library, add the statement USE NWTC_Library to the program unit requiring access. All of the modules in the NWTC Subroutine Library will be accessible through this statement. The library's NWTC_Init subroutine must also be called before using any of the other routines or parameters in the library.
The library is written in standard Fortran 2003, with the exception of some of the routines and data in the Sys*.f90 files. We currently have several compiler-specific files available to choose from, including SysIVF.f90 for the Intel Visual Fortran compiler for Windows and SysGnuLinux.f90 for the GNU Fortran compiler for Linux. If you want to port our programs to a different compiler, you should only have to modify one of the Sys*.f90 files to get it to compile. (You should rename the Sys*.f90 file when you make changes.) This should require only minutes (or hours at the most).
To compile the library, see the instructions and source-file compilation order described in the heading of the NWTC_Library.f90 file. Add the file SingPrec.f90 to your project to use single-precision (four-byte) arithmetic or the file DoubPrec.f90 to use double-precision (eight-byte) arithmetic.
If you have written other general-use routines and would like us to include them in our library, please email them and I will consider adding them to the library. We also welcome suggestions for desirable routines.
You may download the following files from our server:
You may download the following older files from our server:
The library is undergoing rapid change and the programs that use it cannot keep up. If you want to recompile one of the programs that we have not updated, please use one of these older versions.Windows Archives:
You may download the following alpha version from our server:
If you are a developer for the FAST Modularization Framework, you may download this alpha version of the library, which has been updated for compatibility with the framework. It is still undergoing testing.
If you want to refer to the NWTC Subroutine Library in a report, here is a reference you can use:
This page was generated by CreatePage.pl on 03-April-2013 at 14:17:11 MDT.
Last modification: Wednesday, 3-April-2013 at 14:17:11 MDT
|NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency & Renewable Energy,
operated by the Alliance for Sustainable Energy, LLC
Webmaster | Security & Privacy | Disclaimer | NREL Home