1 | MODULE evol_co2_ice_s_mod |
---|
2 | |
---|
3 | IMPLICIT NONE |
---|
4 | |
---|
5 | CONTAINS |
---|
6 | |
---|
7 | SUBROUTINE 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 | |
---|
48 | END SUBROUTINE evol_co2_ice_s |
---|
49 | |
---|
50 | END MODULE evol_co2_ice_s_mod |
---|