Ignore:
Timestamp:
Sep 13, 2018, 3:27:26 PM (6 years ago)
Author:
emillour
Message:

Mars physics:

  • Turn watersat into a module.

CO2 cloud updates:

  • compute co2 condensation tendencies in the co2 cloud scheme and pass them on to vdifc (for tests; they might not be needed) and adapt newcondens.

DB+EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/watersat.F

    r689 r1996  
     1      MODULE watersat_mod
     2     
     3      IMPLICIT NONE
     4     
     5      CONTAINS
     6     
    17      SUBROUTINE watersat(naersize,t,p,qsat)
     8     
    29      IMPLICIT NONE
    310
     
    714c   and Temperature (K) array
    815c
     16c  Move in module by Deborah BARDET 02/07/18
    917c=======================================================================
    1018
     
    1523
    1624c   INPUT
    17       integer naersize
    18       real t(naersize) , p(naersize)
     25      integer, intent(in) :: naersize
     26      real, intent(in) :: t(naersize)
     27      real, intent(in) :: p(naersize)
    1928c   OUTPUT
    20       real qsat(naersize)
     29      real, intent(out) :: qsat(naersize)
    2130
    2231c   local:
    2332c   ------
    2433      INTEGER i
    25       REAL r2,r3,r4 , To, es
    26       SAVE r2,r3,r4
    27       DATA r2,r3,r4/611.14,21.875,7.66/
    28       SAVE To
    29       DATA To/273.16/
    30          
     34      REAL,PARAMETER :: r2 = 611.14
     35      REAL,PARAMETER :: r3 = 21.875
     36      REAL,PARAMETER :: r4 = 7.66
     37      REAL,PARAMETER :: To = 273.16
     38      REAL es
     39     
     40     
    3141      do i=1,naersize
    3242c        pression de vapeur saturante :
     
    4454      enddo
    4555
    46       RETURN
    47       END
    48 
     56      END SUBROUTINE watersat
     57     
     58      END MODULE watersat_mod
Note: See TracChangeset for help on using the changeset viewer.