| Contents |   | NWTC Subroutine Library | ||
|---|---|---|---|---|
| Home
Ames Test Annex XX Certification Design Codes
Furling MT2 Airfoils SWRT Other Links NWTC Forums NWTC (Official) NWTC Internal NWTC Weather |
A library of general-use routines used in many NWTC design codes
by Marshall Buhl National Wind Technology Center Over the years, the staff at the NWTC has 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 routines are organized in several files. Six of them have compiler-independent routines and the rest contain compiler-specific routines. Four of the compiler-independent files are called NWTC_Library.f90, NWTC_Aero.f90, NWTC_IO.f90, and NWTC_Num.f90. The first is just a simple module that makes it possible to USE only it to get all the modules in the library. The second contains the aerodynamics-related routines and data, which will eventually be moved to AeroDyn. The third contains I/O-related routines and data. The fourth contains numeric routines and data. The other two files contain modules that specify the precision of the floating-point variables. 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. Other files in the library contain compiler-specific routines and data. The only one currently available is called SysVF.f90. We may offer other compiler-specific files in the future. SysVF.f90 is for the DEC, Compaq, and Intel Visual Fortran compilers for Windows. If you want to port our programs to another compiler, you only have to modify this file to get it to compile. You should rename it too. This should only require minutes (or hours at the most). 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:
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 18-January-2008 at 09:44:33 MST. |
| 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 |