Changeset 2667 in lmdz_wrf


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

Adjuting names of operatiors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_scientific.f90

    r2664 r2667  
    106106! curl2D_1o: Subroutine to compute the first order curl of a 2D vectorial field
    107107! curl2D_c1o: Subroutine to compute the first order centered curl of a 2D vectorial field
    108 ! deformation3D_1o: Subroutine to compute the first order deformation of a 3D field
     108! deformation3D: Subroutine to compute the deformation of a 3D field
    109109! divergence2D_1o: Subroutine to compute the first order divergence of a 2D vectorial field
    110110! divergence2D_c1o: Subroutine to compute the first order centered divergence of a 2D vectorial field
     
    115115! lap2D_c1o: Subroutine to compute the first order centered laplacian of a 2D vectorial field
    116116! matmodule3D: Subroutine to compute the module of a 3D matrix with 3 components
    117 ! tilting3D_1o: Subroutine to compute the first order tilting of a 3D field
     117! tilting3D: Subroutine to compute the tilting of a 3D field
    118118! vecmodule3D: Function to compute the module of a 3D vector
    119119
     
    76557655
    76567656    INTEGER, INTENT(in)                                  :: dx, dy, dz
    7657     REAL(r_k), DIMENSION(dx,dy,dz), INTENT(in)           :: var, dsz
     7657    REAL(r_k), DIMENSION(dx,dy,dz), INTENT(in)           :: var
    76587658    REAL(r_k), DIMENSION(dx,dy), INTENT(in)              :: dsx, dsy
     7659    REAL(r_k), DIMENSION(dz), INTENT(in)                 :: dsz
    76597660    REAL(r_k), DIMENSION(dx,dy,dz,3), INTENT(out)        :: grad
    76607661
     
    76767677        DO k=1, dz-1
    76777678          grad(i,j,k,:) = (/ (var(i+1,j,k)-var(i,j,k))/dsx(i,j), (var(i,j+1,k)-var(i,j,k))/dsy(i,j),  &
    7678              (var(i,j,k+1)-var(i,j,k))/dsz(i,j,k) /)
     7679             (var(i,j,k+1)-var(i,j,k))/dsz(k) /)
    76797680        END DO
    76807681      END DO
     
    79367937  END SUBROUTINE matmodule3D
    79377938
    7938   SUBROUTINE deformation3D_1o(dx, dy, dz, vargrad, uagrad, vagrad, def)
    7939   ! Subroutine to compute the first order deformation of a 3D field
    7940   !   FROM: From: https://en.wikipedia.org/wiki/Finite_difference_coefficient
     7939  SUBROUTINE deformation3D(dx, dy, dz, vargrad, uagrad, vagrad, def)
     7940  ! Subroutine to compute the deformation of a 3D field
    79417941
    79427942    IMPLICIT NONE
     
    79557955! def: deformation
    79567956
    7957     fname = 'deformation3D_1o'
     7957    fname = 'deformation3D'
    79587958
    79597959    def = fillval64
     
    79637963    def(:,:,:,3) = - uagrad(:,:,:,3)*vargrad(:,:,:1) - vagrad(:,:,:,3)*vargrad(:,:,:2)
    79647964
    7965   END SUBROUTINE deformation3D_1o
    7966 
    7967   SUBROUTINE tilting3D_1o(dx, dy, dz, vargrad, wagrad, tilt)
    7968   ! Subroutine to compute the first order tilting of a 3D field
     7965  END SUBROUTINE deformation3D
     7966
     7967  SUBROUTINE tilting3D(dx, dy, dz, vargrad, wagrad, tilt)
     7968  ! Subroutine to compute the tilting of a 3D field
    79697969  !   FROM: From: https://en.wikipedia.org/wiki/Finite_difference_coefficient
    79707970
     
    79847984! tilt: tilting
    79857985
    7986     fname = 'tilting3D_1o'
     7986    fname = 'tilting3D'
    79877987
    79887988    tilt = fillval64
     
    79927992    tilt(:,:,:,3) = - wagrad(:,:,:,3)*vargrad(:,:,:3)
    79937993
    7994   END SUBROUTINE tilting3D_1o
     7994  END SUBROUTINE tilting3D
    79957995
    79967996END MODULE module_scientific
Note: See TracChangeset for help on using the changeset viewer.