source: trunk/LMDZ.COMMON/libf/evolution/evol_co2_ice_s_mod_slope.F90 @ 2962

Last change on this file since 2962 was 2863, checked in by llange, 23 months ago

PEM
H2O adsorption is now computed. Total mass of H2o adsorbded is written in the restart_PEM.
+Minor fixes and edit
LL & RV

File size: 1.3 KB
Line 
1!
2! $Id $
3!
4SUBROUTINE evol_co2_ice_s_slope(qsurf,tendencies_co2_ice_phys,&
5                             iim_input,jjm_input,ngrid,cell_area,STOPPING,nslope)
6
7  USE temps_mod_evol, ONLY: dt_pem
8
9      IMPLICIT NONE
10
11!=======================================================================
12!
13!  Routine that compute the evolution of the CO2 ice
14!
15!=======================================================================
16
17!   arguments:
18!   ----------
19
20!   INPUT
21
22  INTEGER, intent(in) :: iim_input,jjm_input, ngrid,nslope   ! # of grid points along longitude/latitude/ total
23  REAL, intent(in) ::  cell_area(ngrid)
24
25!   OUTPUT
26  REAL, INTENT(INOUT) ::  qsurf(ngrid,nslope)                ! physical point field : Previous and actual density of water ice
27  LOGICAL :: STOPPING
28  REAL, intent(inout) ::  tendencies_co2_ice_phys(ngrid,nslope) ! physical point field : Evolution of perenial ice over one year
29
30!   local:
31!   ----
32
33  INTEGER :: i,j,ig0,islope                                  ! loop variable
34
35  STOPPING=.false.
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_slope
Note: See TracBrowser for help on using the repository browser.