source: trunk/LMDZ.COMMON/libf/evolution/evol_co2_ice_s_mod.F90 @ 3000

Last change on this file since 3000 was 2980, checked in by romain.vande, 21 months ago

Mars PEM :

Adapt PEM to 1d runs.
Cleaning of names and unused variables.
Correct minor errors.
Adapt and correct reshape_xios_output utilitary for 1d diagfi output.

RV

File size: 1.4 KB
Line 
1MODULE evol_co2_ice_s_mod
2
3IMPLICIT NONE
4
5CONTAINS
6
7SUBROUTINE evol_co2_ice_s(qsurf,tendencies_co2_ice_phys,&
8                             iim_input,jjm_input,ngrid,cell_area,nslope)
9
10  USE temps_mod_evol, ONLY: dt_pem
11
12      IMPLICIT NONE
13
14!=======================================================================
15!
16!  Routine that compute the evolution of the CO2 ice
17!
18!=======================================================================
19
20!   arguments:
21!   ----------
22
23!   INPUT
24
25  INTEGER, intent(in) :: iim_input,jjm_input, ngrid,nslope      ! # of grid points along longitude/latitude/ total
26  REAL, intent(in) ::  cell_area(ngrid)
27
28!   OUTPUT
29  REAL, INTENT(INOUT) ::  qsurf(ngrid,nslope)                   ! physical point field : Previous and actual density of water ice
30  REAL, intent(inout) ::  tendencies_co2_ice_phys(ngrid,nslope) ! physical point field : Evolution of perenial ice over one year
31
32!   local:
33!   ----
34
35  INTEGER :: i,j,ig0,islope                                     ! loop variable
36
37! Evolution of the CO2 ice for each physical point
38  do i=1,ngrid
39    do islope=1,nslope
40      qsurf(i,islope)=qsurf(i,islope)+tendencies_co2_ice_phys(i,islope)*dt_pem
41      if (qsurf(i,islope).lt.0) then
42        qsurf(i,islope)=0.
43        tendencies_co2_ice_phys(i,islope)=0.
44      endif
45    enddo
46  enddo
47
48END SUBROUTINE evol_co2_ice_s
49
50END MODULE evol_co2_ice_s_mod
Note: See TracBrowser for help on using the repository browser.