1 | ! |
---|
2 | ! $Id $ |
---|
3 | ! |
---|
4 | SUBROUTINE 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 water 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 water 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 | |
---|
48 | END SUBROUTINE evol_co2_ice_s_slope |
---|