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

Last change on this file since 3088 was 3039, checked in by jbclement, 22 months ago

Mars PEM:
Big cleaning of main program pem.F90 (indentation, declarations, comments, simplification of conditions/loops, etc).
JBC

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 time_evol_mod, 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.