Changeset 2419


Ignore:
Timestamp:
Jan 4, 2016, 5:12:49 PM (8 years ago)
Author:
Ehouarn Millour
Message:

Extracted "qcheck" function from physiq_mod.F90 module; it is self-standing and general, and moreover its being in the physiq module causes compilation issues with ifort.
EM

Location:
LMDZ5/trunk/libf/phylmd
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/physiq_mod.F90

    r2418 r2419  
    44804480END SUBROUTINE physiq
    44814481
    4482 FUNCTION qcheck(klon,klev,paprs,q,ql,aire)
    4483   IMPLICIT none
    4484   !
    4485   ! Calculer et imprimer l'eau totale. A utiliser pour verifier
    4486   ! la conservation de l'eau
    4487   !
    4488   include "YOMCST.h"
    4489   INTEGER klon,klev
    4490   REAL paprs(klon,klev+1), q(klon,klev), ql(klon,klev)
    4491   REAL aire(klon)
    4492   REAL qtotal, zx, qcheck
    4493   INTEGER i, k
    4494   !
    4495   zx = 0.0
    4496   DO i = 1, klon
    4497      zx = zx + aire(i)
    4498   ENDDO
    4499   qtotal = 0.0
    4500   DO k = 1, klev
    4501      DO i = 1, klon
    4502         qtotal = qtotal + (q(i,k)+ql(i,k)) * aire(i) &
    4503              *(paprs(i,k)-paprs(i,k+1))/RG
    4504      ENDDO
    4505   ENDDO
    4506   !
    4507   qcheck = qtotal/zx
    4508   !
    4509 END FUNCTION qcheck
    4510 
    45114482END MODULE physiq_mod
Note: See TracChangeset for help on using the changeset viewer.