Difference between revisions of "Dynlib"
|Line 106:||Line 106:|
Revision as of 13:00, 25 January 2013
The steps necessary to obtain dynlib are described below. A more thorough documentation is compiled in the main documentation page.
- Copying the source code repository
git clone /Data/gfi/users/tsp065/lib/dynlib.git
- Change into the dynlib folder
- Compile the library
Quick start to developing with dynlib
Editing the Fortran code
The fortran code lives in the main source code directory. At the moment there are six source code files
$ ls *.f95
dynlib_config.f95 dynlib_const.f95 dynlib_conv.f95 dynlib_diag.f95 dynlib_kind.f95 dynlib_stat.f95
The most important are
dynlib_diag.f95 which contains subroutines that calculate various diagnostics, and
dynlib_stat.f95 which contains statistical functions. Changed Fortran sources need to be recompiled, again using
The changes you made to the source code files can be listed by
or viewed in detailed diff-comparisons by
or for one file only
git diff [filename]
Commit your changes from time to time and give a sensible and brief description of your changes in the editor that is opened (automatically)
git commit -a
The commit is then stored in your copy of the source code repository, but not yet available for others, which allows you to also commit work-in-progress.
Using the Fortran functions
An example python script which calculates deformation using the Fortran function is provided with
The functions generally operate on real arrays with dimension (nz,ny,nx) where nz is number of times or levels, and ny and nx are the number of latitudes and longitudes, respectively. The function descriptions below contain detailed descriptions of arguments and returns where there is any deviation from this pattern; otherwise they may be assumed to be of the form:
Keyser, D., Reeder, M. J., Reed, R. J. - A Generalization of Petterssen Frontogenesis Function and Its Relation to the Forcing of Vertical Motion
- Monthly Weather Review 116(3):762-780,1988
BibtexAuthor : Keyser, D., Reeder, M. J., Reed, R. J.
Title : A Generalization of Petterssen Frontogenesis Function and Its Relation to the Forcing of Vertical Motion
In : Monthly Weather Review -
Date : 1988
Lapeyre, G., Klein, P., Hua, B. L. - Does the tracer gradient vector align with the strain eigenvectors in 2D turbulence?
- Physics of Fluids 11(12):3729-3737,1999
BibtexAuthor : Lapeyre, G., Klein, P., Hua, B. L.
Title : Does the tracer gradient vector align with the strain eigenvectors in 2D turbulence?
In : Physics of Fluids -
Date : 1999
Markowski, Paul - Mesoscale meteorology in midlatitudes
- Chichester, West Sussex, UK ;Hoboken, NJ : Wiley-Blackwell, 2010,2010
BibtexAuthor : Markowski, Paul
Title : Mesoscale meteorology in midlatitudes
In : -
Date : 2010
Okubo, A. - Horizontal Dispersion of Foreign Particles in Vicinity of Velocity Singularities Such as Convergences
- Transactions-American Geophysical Union 50(4):182-&,1969
BibtexAuthor : Okubo, A.
Title : Horizontal Dispersion of Foreign Particles in Vicinity of Velocity Singularities Such as Convergences
In : Transactions-American Geophysical Union -
Date : 1969
Riviere, G. - Effect of Latitudinal Variations in Low-Level Baroclinicity on Eddy Life Cycles and Upper-Tropospheric Wave-Breaking Processes