| 1 | MODULE compute_tendencies_slope_mod |
|---|
| 2 | |
|---|
| 3 | implicit none |
|---|
| 4 | |
|---|
| 5 | !======================================================================= |
|---|
| 6 | contains |
|---|
| 7 | !======================================================================= |
|---|
| 8 | |
|---|
| 9 | SUBROUTINE compute_tendencies_slope(ngrid,nslope,min_ice_Y1,min_ice_Y2,tendencies_ice) |
|---|
| 10 | |
|---|
| 11 | implicit none |
|---|
| 12 | |
|---|
| 13 | !======================================================================= |
|---|
| 14 | ! |
|---|
| 15 | ! Compute the tendencies of the evolution of water ice over the years |
|---|
| 16 | ! |
|---|
| 17 | !======================================================================= |
|---|
| 18 | |
|---|
| 19 | ! arguments: |
|---|
| 20 | ! ---------- |
|---|
| 21 | ! INPUT |
|---|
| 22 | integer, intent(in) :: ngrid, nslope ! # of grid points along longitude/latitude/ total |
|---|
| 23 | real, dimension(ngrid,nslope), intent(in) :: min_ice_Y1 ! LON x LAT field : minimum of water ice at each point for the first year |
|---|
| 24 | real, dimension(ngrid,nslope), intent(in) :: min_ice_Y2 ! LON x LAT field : minimum of water ice at each point for the second year |
|---|
| 25 | |
|---|
| 26 | ! OUTPUT |
|---|
| 27 | real, dimension(ngrid,nslope), intent(out) :: tendencies_ice ! physical point field : difference between the minima = evolution of perenial ice |
|---|
| 28 | !======================================================================= |
|---|
| 29 | |
|---|
| 30 | ! We compute the difference |
|---|
| 31 | tendencies_ice = min_ice_Y2 - min_ice_Y1 |
|---|
| 32 | |
|---|
| 33 | ! If the difference is too small; there is no evolution |
|---|
| 34 | where (abs(tendencies_ice) < 1.e-10) tendencies_ice = 0. |
|---|
| 35 | |
|---|
| 36 | END SUBROUTINE compute_tendencies_slope |
|---|
| 37 | |
|---|
| 38 | END MODULE compute_tendencies_slope_mod |
|---|
| 39 | |
|---|