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 3370 for branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbclv.F90 – NEMO

Ignore:
Timestamp:
2012-04-30T10:27:44+02:00 (12 years ago)
Author:
sga
Message:

NEMO branch dev_r3337_NOCS10_ICB: lots of cosmetic Gurvanistic changes (the odd space or exclamation mark!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbclv.F90

    r3359 r3370  
    33   !!====================================================================== 
    44   !!                       ***  MODULE  icbclv  *** 
    5    !! Ocean physics:  calving routines for iceberg calving 
     5   !! Icebergs:  calving routines for iceberg calving 
    66   !!====================================================================== 
    77   !! History : 3.3.1 !  2010-01  (Martin&Adcroft) Original code 
     
    1212   !!---------------------------------------------------------------------- 
    1313   !!---------------------------------------------------------------------- 
    14    !!   accumulate_calving      : 
    15    !!   icb_gen       : generate test icebergs 
     14   !!   accumulate_calving : 
     15   !!   icb_gen            : generate test icebergs 
    1616   !!---------------------------------------------------------------------- 
    1717   USE par_oce        ! NEMO parameters 
     
    2121   USE lbclnk         ! NEMO boundary exchanges for gridded data 
    2222 
    23    USE icb_oce        ! define iceberg arrays 
    24    USE icbdia         ! iceberg utility routines 
     23   USE icb_oce        ! iceberg variables 
     24   USE icbdia         ! iceberg diagnostics 
    2525   USE icbutl         ! iceberg utility routines 
    2626 
     
    3131   PUBLIC   calve_icebergs      ! routine called in icbrun.F90 module 
    3232 
     33   !!---------------------------------------------------------------------- 
     34   !! NEMO/OPA 3.3 , NEMO Consortium (2011) 
     35   !! $Id:$ 
     36   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     37   !!---------------------------------------------------------------------- 
    3338CONTAINS 
    3439 
     
    4146      !! ** input   : - ? 
    4247      !!---------------------------------------------------------------------- 
    43       ! 
    4448      INTEGER, INTENT(in)             :: kt 
    4549      ! 
     
    6367         !do jn=1, nclasses 
    6468         !  where (berg_grid%calving==0.) berg_grid%stored_ice(:,:,jn)=0. 
    65          !enddo 
     69         !end do 
    6670         DO jj = 2, jpjm1 
    6771            DO ji = 2, jpim1 
     
    109113      !!                is considered 
    110114      !!---------------------------------------------------------------------- 
     115      INTEGER       ::   ji, jj, jn   ! dummy loop indices 
     116      INTEGER       ::   icnt, icntmax 
     117      TYPE(iceberg) ::   newberg 
     118      TYPE(point)   ::   newpt 
     119      REAL(wp)      ::   zddt, zcalved_to_berg, zheat_to_berg 
     120      !!---------------------------------------------------------------------- 
    111121      ! 
    112       INTEGER                         ::   icnt,icntmax 
    113       TYPE(iceberg)                   ::   newberg 
    114       TYPE(point)                     ::   newpt 
    115       INTEGER                         ::   ji, jj, jn                             ! dummy loop indices 
    116       REAL(wp)                        ::   zddt, zcalved_to_berg, zheat_to_berg 
    117       !!---------------------------------------------------------------------- 
    118  
    119       icntmax          = 0 
    120  
     122      icntmax = 0 
     123      ! 
    121124      DO jn = 1, nclasses 
    122125         DO jj = nicbdj, nicbej 
     
    128131               DO WHILE (berg_grid%stored_ice(ji,jj,jn) >= rn_initial_mass(jn) * rn_mass_scaling(jn) ) 
    129132                  ! 
    130                   newpt%lon = glamt(ji,jj)       ! at t-point (centre of the cell) 
     133                  newpt%lon = glamt(ji,jj)         ! at t-point (centre of the cell) 
    131134                  newpt%lat = gphit(ji,jj) 
    132135                  newpt%xi  = REAL( nimpp+ji-1, wp ) 
    133136                  newpt%yj  = REAL( njmpp+jj-1, wp ) 
    134137                  ! 
    135                   newpt%uvel = 0._wp             ! initially at rest 
     138                  newpt%uvel = 0._wp               ! initially at rest 
    136139                  newpt%vvel = 0._wp 
    137140                  !                                ! set berg characteristics 
    138                   newpt%mass         = rn_initial_mass     (jn) 
    139                   newpt%thickness    = rn_initial_thickness(jn) 
    140                   newpt%width        = first_width    (jn) 
    141                   newpt%length       = first_length   (jn) 
     141                  newpt%mass           = rn_initial_mass     (jn) 
     142                  newpt%thickness      = rn_initial_thickness(jn) 
     143                  newpt%width          = first_width         (jn) 
     144                  newpt%length         = first_length        (jn) 
    142145                  newberg%mass_scaling = rn_mass_scaling     (jn) 
    143                   newpt%mass_of_bits = 0._wp                          ! no bergy 
     146                  newpt%mass_of_bits   = 0._wp                          ! no bergy 
    144147                  ! 
    145148                  newpt%year   = current_year 
     
    157160                  berg_grid%stored_heat(ji,jj) = berg_grid%stored_heat(ji,jj) - zheat_to_berg 
    158161                  !                                ! Stored mass 
    159                   berg_grid%stored_ice(ji,jj,jn)   = berg_grid%stored_ice(ji,jj,jn) - zcalved_to_berg 
     162                  berg_grid%stored_ice(ji,jj,jn) = berg_grid%stored_ice(ji,jj,jn) - zcalved_to_berg 
    160163                  ! 
    161164                  zddt  = zddt + berg_dt * 2._wp / 17._wp    ! Minor offset to start day    !!gm why??? 
     
    171174      DO jn = 1,nclasses 
    172175         CALL lbc_lnk( berg_grid%stored_ice(:,:,jn), 'T', 1._wp ) 
    173       ENDDO 
     176      END DO 
    174177      CALL lbc_lnk( berg_grid%stored_heat, 'T', 1._wp ) 
    175178      ! 
     
    178181   END SUBROUTINE  calve_icebergs 
    179182 
     183   !!====================================================================== 
    180184END MODULE icbclv 
Note: See TracChangeset for help on using the changeset viewer.