Changeset 4140 for trunk/LMDZ.COMMON/libf/evolution/tendencies.F90
- Timestamp:
- Mar 18, 2026, 1:56:02 PM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/tendencies.F90 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/tendencies.F90
r4135 r4140 28 28 29 29 !======================================================================= 30 SUBROUTINE compute_tendice(min_ ice,is_perice,d_ice)30 SUBROUTINE compute_tendice(min_perice,min_frost,perice,d_ice) 31 31 !----------------------------------------------------------------------- 32 32 ! NAME … … 51 51 ! ARGUMENTS 52 52 ! --------- 53 real(dp), dimension(:,:,:), intent(in) :: min_ice 54 logical(k4), dimension(:,:), intent(in) :: is_perice 55 real(dp), dimension(:,:), intent(out) :: d_ice 53 real(dp), dimension(:,:,:), intent(in) :: min_perice 54 real(dp), dimension(:,:,:), intent(in) :: min_frost 55 real(dp), dimension(:,:), intent(in) :: perice 56 real(dp), dimension(:,:), intent(out) :: d_ice 56 57 57 58 ! CODE 58 59 ! ---- 59 60 ! We compute the difference to get the tendency 60 d_ice(:,:) = min_ ice(:,:,2) - min_ice(:,:,1)61 d_ice(:,:) = min_perice(:,:,2) + min_frost(:,:,2) - (min_perice(:,:,1) + min_frost(:,:,1)) 61 62 62 63 ! If the difference is too small, then there is no evolution … … 64 65 65 66 ! If the tendency is negative but there is no ice reservoir for the PEM 66 where ( abs(d_ice) < 0._dp .and. .not. is_perice) d_ice = 0._dp67 where (d_ice < 0._dp .and. abs(perice) < minieps) d_ice = 0._dp 67 68 68 69 END SUBROUTINE compute_tendice
Note: See TracChangeset
for help on using the changeset viewer.
