Shin-ichi Takehiro (Research Institute for Mathematical Sciences, Kyoto University) Masatsugu Odaka (Graduate school of Sciences, Hokkaido University) Keiichi Ishioka (Graduate school of Sciences, Kyoto University) Masaki Ishiwatari (Graduate School of Environmental Earth Science, Hokkaido University) Yoshi-Yuki Hayashi (Graduate school of Sciences, Hokkaido University) SPMODEL Development Group (GFD Dennou Club)
(Received 25 January,2006; in revised form 28 August,2006)
A series of spectral models which enable easy execution of standard numerical experiments in earth and planetary fluid dynamics problems have been developed. The following three requirements were given priority in designing the program source codes; 1) allow anyone to read, use, and modify the source codes, 2) readability and understandability of the source codes to permit easy re-building and/or modification, 3) ease in visualization and post-processing of output data. In order to improve readability and modifiability, Fortran90 modules are prepared to provide the subroutines of ISPACK, a FORTRAN77 library for spectral models, as array-valued functions. With the help of the introduction of systematic function naming rules and the use of array-handling features enhanced by Fortran90, program source codes can now be written with a form which is easily deduced from the mathematical expressions of the governing equations. The programming technique realized in this study is expected to save both time and labor in creating numerical models from governing equations, as well as facilitate numerical experiments in geophysical fluid dynamics.