source: trunk/LMDZ.COMMON/libf/evolution/compute_tendencies_mod_slope.F90 @ 2897

Last change on this file since 2897 was 2897, checked in by romain.vande, 22 months ago

Mars PEM:
Deep cleaning of variables name and allocate.
All the "dyn to phys" grid change is done in subroutines and not in the main program.

File size: 1.6 KB
RevLine 
[2779]1!
2! $Id $
3!
[2897]4SUBROUTINE compute_tendencies_slope(ngrid,nslope,min_ice_Y1,&
5     min_ice_Y2,tendencies_ice)
[2779]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
[2897]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
[2779]23
24!   OUTPUT
[2897]25     REAL, intent(out) , dimension(ngrid,nslope)   :: tendencies_ice            ! physical point field : difference between the minima = evolution of perenial ice
[2779]26
27!   local:
28!   ------
[2897]29     INTEGER :: ig,islope                                                           ! loop variable
[2779]30
31!=======================================================================
32
33!  We compute the difference
34
[2897]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
[2779]39  ENDDO
40
41!  If the difference is too small; there is no evolution
[2897]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
[2779]48  ENDDO
49
50END SUBROUTINE compute_tendencies_slope
51
Note: See TracBrowser for help on using the repository browser.