- Timestamp:
- Oct 5, 2023, 11:29:45 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/compute_tendencies_slope.F90
r3039 r3070 1 ! 2 ! $Id $ 3 ! 4 SUBROUTINE compute_tendencies_slope(ngrid,nslope,min_ice_Y1,& 5 min_ice_Y2,tendencies_ice) 1 SUBROUTINE compute_tendencies_slope(ngrid,nslope,min_ice_Y1,min_ice_Y2,tendencies_ice) 6 2 7 IMPLICIT NONE 3 implicit none 8 4 9 5 !======================================================================= … … 15 11 ! arguments: 16 12 ! ---------- 17 18 13 ! 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 14 integer, intent(in) :: ngrid, nslope ! # of grid points along longitude/latitude/ total 15 real, dimension(ngrid,nslope), intent(in) :: min_ice_Y1 ! LON x LAT field : minimum of water ice at each point for the first year 16 real, dimension(ngrid,nslope), intent(in) :: min_ice_Y2 ! LON x LAT field : minimum of water ice at each point for the second year 23 17 24 18 ! 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 19 real, dimension(ngrid,nslope), intent(out) :: tendencies_ice ! physical point field : difference between the minima = evolution of perenial ice 30 20 31 21 !======================================================================= 32 22 33 23 ! 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 24 tendencies_ice = min_ice_Y2 - min_ice_Y1 40 25 41 26 ! 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 27 where (abs(tendencies_ice) < 1.e-10) tendencies_ice = 0. 49 28 50 29 END SUBROUTINE compute_tendencies_slope
Note: See TracChangeset
for help on using the changeset viewer.