Changeset 2669 in lmdz_wrf


Ignore:
Timestamp:
Jul 12, 2019, 6:07:25 PM (5 years ago)
Author:
lfita
Message:

Advancing on the implementation of the frontogenesis diagnostic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_ForDiagnosticsVars.f90

    r2666 r2669  
    20562056    INTEGER, INTENT(in)                                  :: dx, dy, dz, dt
    20572057    REAL(r_k), DIMENSION(dx,dy), INTENT(in)              :: ddx,ddy
    2058     REAL(r_k), DIMENSION(dx,dy,dz), INTENT(in)           :: ddz
     2058    REAL(r_k), DIMENSION(dz), INTENT(in)                 :: ddz
    20592059    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(in)        :: theta, ua, va, wa
    20602060    REAL(r_k), DIMENSION(dx,dy,dz,dt), INTENT(out)       :: xdiab, ydiab, zdiab
     
    20652065    ! Local
    20662066    INTEGER                                              :: i,j,k,l,it
     2067    REAL(r_k), DIMENSION(dx,dy,dz)                       :: modthetagrad
     2068    REAL(r_k), DIMENSION(dx,dy,dz,3)                     :: thetagrad, uagrad, vagrad, wagrad,        &
     2069      thetadef, thetatilt
    20672070
    20682071!!!!!!! Variables
     
    20792082    fname = 'var_Frontogenesis'
    20802083
     2084    ! Computing components separately by time-step
     2085    DO it=1, dt
     2086      CALL gradient3D_1o(dx, dy, dz, theta(:,:,:,it), ddx, ddy, ddz, thetagrad)
     2087      CALL gradient3D_1o(dx, dy, dz, ua(:,:,:,it), ddx, ddy, ddz, uagrad)
     2088      CALL gradient3D_1o(dx, dy, dz, va(:,:,:,it), ddx, ddy, ddz, vagrad)
     2089      CALL gradient3D_1o(dx, dy, dz, wa(:,:,:,it), ddx, ddy, ddz, wagrad)
     2090      CALL deformation3D(dx, dy, dz, thetagrad, uagrad, vagrad, thetadef)
     2091      CALL tilting3D(dx, dy, dz, thetagrad, wagrad, thetatilt)
     2092      xdef(:,:,:,it) = thetadef(:,:,:,1)
     2093      ydef(:,:,:,it) = thetadef(:,:,:,2)
     2094      zdef(:,:,:,it) = thetadef(:,:,:,3)
     2095      xtilt(:,:,:,it) = thetatilt(:,:,:,1)
     2096      ytilt(:,:,:,it) = thetatilt(:,:,:,2)
     2097      zdiv(:,:,:,it) = thetatilt(:,:,:,3)
     2098
     2099    END DO
     2100
    20812101
    20822102  END SUBROUTINE var_Frontogenesis
Note: See TracChangeset for help on using the changeset viewer.