1 | ! |
---|
2 | ! $Id $ |
---|
3 | ! |
---|
4 | SUBROUTINE compute_tendencies_slope(ngrid,nslope,min_ice_Y1,& |
---|
5 | min_ice_Y2,tendencies_ice) |
---|
6 | |
---|
7 | IMPLICIT NONE |
---|
8 | |
---|
9 | !======================================================================= |
---|
10 | ! |
---|
11 | ! Compute the tendencies of the evolution of water ice over the years |
---|
12 | ! |
---|
13 | !======================================================================= |
---|
14 | |
---|
15 | ! arguments: |
---|
16 | ! ---------- |
---|
17 | |
---|
18 | ! INPUT |
---|
19 | |
---|
20 | INTEGER, intent(in) :: ngrid, nslope ! # of grid points along longitude/latitude/ total |
---|
21 | REAL, intent(in) , dimension(ngrid,nslope):: min_ice_Y1 ! LON x LAT field : minimum of water ice at each point for the first year |
---|
22 | REAL, intent(in) , dimension(ngrid,nslope):: min_ice_Y2 ! LON x LAT field : minimum of water ice at each point for the second year |
---|
23 | |
---|
24 | ! OUTPUT |
---|
25 | REAL, intent(out) , dimension(ngrid,nslope) :: tendencies_ice ! physical point field : difference between the minima = evolution of perenial ice |
---|
26 | |
---|
27 | ! local: |
---|
28 | ! ------ |
---|
29 | INTEGER :: ig,islope ! loop variable |
---|
30 | |
---|
31 | !======================================================================= |
---|
32 | |
---|
33 | ! We compute the difference |
---|
34 | |
---|
35 | DO ig=1,ngrid |
---|
36 | DO islope = 1, nslope |
---|
37 | tendencies_ice(ig,islope)=min_ice_Y2(ig,islope)-min_ice_Y1(ig,islope) |
---|
38 | enddo |
---|
39 | ENDDO |
---|
40 | |
---|
41 | ! If the difference is too small; there is no evolution |
---|
42 | DO ig=1,ngrid |
---|
43 | DO islope = 1, nslope |
---|
44 | if(abs(tendencies_ice(ig,islope)).LT.1.0E-10) then |
---|
45 | tendencies_ice(ig,islope)=0. |
---|
46 | endif |
---|
47 | enddo |
---|
48 | ENDDO |
---|
49 | |
---|
50 | END SUBROUTINE compute_tendencies_slope |
---|
51 | |
---|