Changeset 2666 in lmdz_wrf


Ignore:
Timestamp:
Jul 12, 2019, 5:32:52 PM (5 years ago)
Author:
lfita
Message:

Starting to add copmutation of frontogenesis equation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_ForDiagnosticsVars.f90

    r2655 r2666  
    20472047  END SUBROUTINE var_front_R04
    20482048
     2049  SUBROUTINE var_Frontogenesis(dx, dy, dz, dt, theta, ua, va, wa, ddx, ddy, ddz, xdiab, ydiab, zdiab, \
     2050    xdef, ydef, zdef, xtilt, ytilt, zdiv, f)
     2051  ! Subroutine to compute the terms of the equation of frontogenesis
     2052  ! AFTER: https://en.wikipedia.org/wiki/Frontogenesis, http://glossary.ametsoc.org/wiki/Frontogenetical_function
     2053
     2054    IMPLICIT NONE
     2055
     2056    INTEGER, INTENT(in)                                  :: dx, dy, dz, dt
     2057    REAL(r_k), DIMENSION(dx,dy), INTENT(in)              :: ddx,ddy
     2058    REAL(r_k), DIMENSION(dx,dy,dz), INTENT(in)           :: ddz
     2059    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(in)        :: theta, ua, va, wa
     2060    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(out)       :: xdiab, ydiab, zdiab
     2061    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(out)       :: xdef, ydef, zdef
     2062    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(out)       :: xtilt, ytilt, zdiv
     2063    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(out)       :: f
     2064
     2065    ! Local
     2066    INTEGER                                              :: i,j,k,l,it
     2067
     2068!!!!!!! Variables
     2069! dx, dy, dz, dt: dimensions of the variables
     2070! theta: potential temperature [K]
     2071! ua, va, wa: x/y/z wind direction [ms-1]
     2072! ddx, ddy, ddz: x/y/z distances among grid points [m]
     2073! xdiab, ydiab, zdiab: x/y/z diabatic term [Ks-1m-1]
     2074! xdef, ydef, zdef: x/y/z deformation term [Ks-1m-1]
     2075! xtilt, ytilt: x/y tilting term [Ks-1m-1]
     2076! zdiv: vertical divergence term [Ks-1m-1]
     2077! f: frontogenetical function
     2078
     2079    fname = 'var_Frontogenesis'
     2080
     2081
     2082  END SUBROUTINE var_Frontogenesis
     2083
    20492084END MODULE module_ForDiagnosticsVars
Note: See TracChangeset for help on using the changeset viewer.