New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 9190 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ICB/icbclv.F90 – NEMO

Ignore:
Timestamp:
2018-01-06T15:18:23+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: OPA_SRC: style only, results unchanged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ICB/icbclv.F90

    r5215 r9190  
    11MODULE icbclv 
    2  
    32   !!====================================================================== 
    43   !!                       ***  MODULE  icbclv  *** 
     
    1110   !!            -    !  2011-05  (Alderson)       budgets into separate module 
    1211   !!---------------------------------------------------------------------- 
     12 
    1313   !!---------------------------------------------------------------------- 
    1414   !!   icb_clv_flx   : transfer input flux of ice into iceberg classes 
     
    4545      !! 
    4646      !!---------------------------------------------------------------------- 
    47       INTEGER, INTENT(in)             :: kt 
     47      INTEGER, INTENT(in) ::  kt 
    4848      ! 
    49       REAL(wp)                        :: zcalving_used, zdist, zfact 
    50       INTEGER                         :: jn, ji, jj                    ! loop counters 
    51       INTEGER                         :: imx                           ! temporary integer for max berg class 
    52       LOGICAL, SAVE                   :: ll_first_call = .TRUE. 
     49      REAL(wp)      ::  zcalving_used, zdist, zfact 
     50      INTEGER       ::  jn, ji, jj                    ! loop counters 
     51      INTEGER       ::  imx                           ! temporary integer for max berg class 
     52      LOGICAL, SAVE ::  ll_first_call = .TRUE. 
    5353      !!---------------------------------------------------------------------- 
    5454      ! 
     
    7070         DO jj = 2, jpjm1 
    7171            DO ji = 2, jpim1 
    72                IF( berg_grid%calving(ji,jj) /= 0._wp )                                  &    ! Need units of J 
    73                   berg_grid%stored_heat(ji,jj) = SUM( berg_grid%stored_ice(ji,jj,:) ) *         &  ! initial stored ice in kg 
    74                                          berg_grid%calving_hflx(ji,jj) * e1e2t(ji,jj) /   &  ! J/s/m2 x m^2 = J/s 
    75                                          berg_grid%calving(ji,jj)                            ! /calving in kg/s 
     72               IF( berg_grid%calving(ji,jj) /= 0._wp )                                          &    ! Need units of J 
     73                  berg_grid%stored_heat(ji,jj) = SUM( berg_grid%stored_ice(ji,jj,:) ) *         &    ! initial stored ice in kg 
     74                     &                   berg_grid%calving_hflx(ji,jj) * e1e2t(ji,jj) / berg_grid%calving(ji,jj)   ! J/s/m2 x m^2  
     75                     !                                                                                             ! = J/s/calving in kg/s 
    7676            END DO 
    7777         END DO 
     
    8080      ! assume that all calving flux must be distributed even if distribution array does not sum 
    8181      ! to one - this may not be what is intended, but it's what you've got 
    82       DO jj = 1,jpj 
    83          DO ji = 1,jpi 
     82      DO jj = 1, jpj 
     83         DO ji = 1, jpi 
    8484            imx = berg_grid%maxclass(ji,jj) 
    8585            zdist = SUM( rn_distribution(1:nclasses) ) / SUM( rn_distribution(1:imx) ) 
    8686            DO jn = 1, imx 
    87                berg_grid%stored_ice(ji,jj,jn) = berg_grid%stored_ice(ji,jj,jn) + & 
    88                                           berg_dt * berg_grid%calving(ji,jj) * rn_distribution(jn) * zdist 
     87               berg_grid%stored_ice(ji,jj,jn) = berg_grid%stored_ice(ji,jj,jn)     & 
     88                  &                           + berg_dt * berg_grid%calving(ji,jj) * rn_distribution(jn) * zdist 
    8989            END DO 
    9090         END DO 
     
    9898      ! 
    9999   END SUBROUTINE icb_clv_flx 
     100 
    100101 
    101102   SUBROUTINE icb_clv() 
     
    171172      END DO 
    172173      ! 
    173       DO jn = 1,nclasses 
     174      DO jn = 1, nclasses 
    174175         CALL lbc_lnk( berg_grid%stored_ice(:,:,jn), 'T', 1._wp ) 
    175176      END DO 
Note: See TracChangeset for help on using the changeset viewer.