| 1 | MODULE evol_co2_ice_s_mod |
|---|
| 2 | |
|---|
| 3 | implicit none |
|---|
| 4 | |
|---|
| 5 | !======================================================================= |
|---|
| 6 | contains |
|---|
| 7 | !======================================================================= |
|---|
| 8 | |
|---|
| 9 | SUBROUTINE evol_co2_ice_s(qsurf,tendencies_co2_ice_phys,iim_input,jjm_input,ngrid,cell_area,nslope) |
|---|
| 10 | |
|---|
| 11 | use time_evol_mod, only: dt_pem |
|---|
| 12 | |
|---|
| 13 | implicit none |
|---|
| 14 | |
|---|
| 15 | !======================================================================= |
|---|
| 16 | ! |
|---|
| 17 | ! Routine that compute the evolution of the CO2 ice |
|---|
| 18 | ! |
|---|
| 19 | !======================================================================= |
|---|
| 20 | ! arguments: |
|---|
| 21 | ! ---------- |
|---|
| 22 | ! INPUT |
|---|
| 23 | integer, intent(in) :: iim_input, jjm_input, ngrid, nslope ! # of grid points along longitude/latitude/ total |
|---|
| 24 | REAL, dimension(ngrid), intent(in) :: cell_area |
|---|
| 25 | |
|---|
| 26 | ! OUTPUT |
|---|
| 27 | real, dimension(ngrid,nslope), intent(inout) :: qsurf ! physical point field: Previous and actual density of water ice |
|---|
| 28 | real, dimension(ngrid,nslope), intent(inout) :: tendencies_co2_ice_phys ! physical point field: Evolution of perennial ice over one year |
|---|
| 29 | |
|---|
| 30 | ! local: |
|---|
| 31 | ! ---- |
|---|
| 32 | integer :: i, j, ig0, islope ! loop variable |
|---|
| 33 | !======================================================================= |
|---|
| 34 | ! Evolution of the CO2 ice for each physical point |
|---|
| 35 | do i=1,ngrid |
|---|
| 36 | do islope=1,nslope |
|---|
| 37 | qsurf(i,islope) = qsurf(i,islope) + tendencies_co2_ice_phys(i,islope)*dt_pem |
|---|
| 38 | if (qsurf(i,islope) < 0) then |
|---|
| 39 | qsurf(i,islope) = 0. |
|---|
| 40 | tendencies_co2_ice_phys(i,islope) = 0. |
|---|
| 41 | endif |
|---|
| 42 | enddo |
|---|
| 43 | enddo |
|---|
| 44 | |
|---|
| 45 | END SUBROUTINE evol_co2_ice_s |
|---|
| 46 | |
|---|
| 47 | END MODULE evol_co2_ice_s_mod |
|---|