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

Ignore:
Timestamp:
2012-04-18T12:42:56+02:00 (12 years ago)
Author:
sga
Message:

NEMO branch dev_r3337_NOCS10_ICB: make code conform to NEMO coding conventions

File:
1 edited

Legend:

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

    r3339 r3359  
    3939   PRIVATE 
    4040 
    41    PUBLIC   icb_stp        ! routine called in xxx.F90 module 
    42    PUBLIC   icb_end        ! routine called in xxx.F90 module 
     41   PUBLIC   icb_stp        ! routine called in sbcmod.F90 module 
     42   PUBLIC   icb_end        ! routine called in nemogcm.F90 module 
    4343 
    4444CONTAINS 
     
    5252      !! ** Method  : - blah blah 
    5353      !!---------------------------------------------------------------------- 
    54       INTEGER, INTENT( in )           ::  kt 
     54      INTEGER, INTENT( in )           ::   kt 
    5555      ! 
    5656      INTEGER                         ::   iyr, imon, iday, ihr, imin, isec 
    57       LOGICAL                         ::   lerr, sample_traj, l_budget, l_verbose 
     57      LOGICAL                         ::   ll_sample_traj, ll_budget, ll_verbose 
    5858      !!---------------------------------------------------------------------- 
    5959      !! start of timestep housekeeping 
    6060 
    61       ktberg = kt 
     61      nktberg = kt 
    6262 
    6363      ! read calving data 
     
    6565         ! 
    6666         CALL fld_read ( kt, 1, sf_icb ) 
    67          p_calving(:,:)      = sf_icb(1)%fnow(:,:,1)    ! calving in km^3/year (water equivalent) 
    68          p_calving_hflx(:,:) = 0._wp                    ! NO heat flux for now 
     67         src_calving(:,:)      = sf_icb(1)%fnow(:,:,1)    ! calving in km^3/year (water equivalent) 
     68         src_calving_hflx(:,:) = 0._wp                    ! NO heat flux for now 
    6969         ! 
    7070      ENDIF 
     
    8787      current_yearday = yearday(imon, iday, ihr, imin, isec) 
    8888 
    89       l_verbose = .FALSE. 
     89      ll_verbose = .FALSE. 
    9090      IF( nn_verbose_write .GT. 0 .AND. & 
    91           MOD(kt-1,nn_verbose_write ) == 0 ) l_verbose = nn_verbose_level >= 0 
    92       IF( l_verbose ) WRITE(numicb,9100) iyr, imon, iday, ihr, imin, isec, & 
     91          MOD(kt-1,nn_verbose_write ) == 0 ) ll_verbose = nn_verbose_level >= 0 
     92      IF( ll_verbose ) WRITE(numicb,9100) iyr, imon, iday, ihr, imin, isec, & 
    9393                                        current_year, current_yearday 
    9494 9100 FORMAT('y,m,d=',3i5,' h,m,s=',3i5,' yr,yrdy=',i5,f8.3) 
     
    112112 
    113113      IF( lk_mpp ) THEN 
    114                                       CALL mpp_send_bergs ()     ! Send bergs to other PEs 
     114                                     CALL mpp_send_bergs ()     ! Send bergs to other PEs 
    115115      ELSE 
    116                                       CALL lbc_send_bergs()      ! Deal with any cyclic boundaries in non-mpp case 
     116                                     CALL lbc_send_bergs()      ! Deal with any cyclic boundaries in non-mpp case 
    117117      ENDIF 
    118118 
     
    122122      !! end of timestep housekeeping 
    123123 
    124       sample_traj = .FALSE. 
    125       IF( nn_sample_rate .GT. 0 .AND. MOD(kt-1,nn_sample_rate) == 0 )   sample_traj = .TRUE. 
    126       IF( sample_traj .AND.   & 
     124      ll_sample_traj = .FALSE. 
     125      IF( nn_sample_rate .GT. 0 .AND. MOD(kt-1,nn_sample_rate) == 0 )   ll_sample_traj = .TRUE. 
     126      IF( ll_sample_traj .AND.   & 
    127127          ASSOCIATED(first_berg) )   CALL traj_write    ( kt )  ! For each berg, record trajectory 
    128128 
     
    142142 
    143143      ! Diagnose budgets 
    144       l_budget = .FALSE. 
    145       IF( nn_verbose_write .GT. 0 .AND. MOD(kt-1,nn_verbose_write) == 0 )   l_budget = ln_bergdia 
    146       CALL icb_budget( l_budget ) 
     144      ll_budget = .FALSE. 
     145      IF( nn_verbose_write .GT. 0 .AND. MOD(kt-1,nn_verbose_write) == 0 )   ll_budget = ln_bergdia 
     146      CALL icb_budget( ll_budget ) 
    147147 
    148148      IF( MOD(kt,nn_stock) == 0 ) THEN 
     
    175175      DEALLOCATE( ssh_e ) 
    176176 
    177       DEALLOCATE( icbfldpts ) 
     177      DEALLOCATE( nicbfldpts ) 
     178      DEALLOCATE( nicbflddest ) 
     179      DEALLOCATE( nicbfldproc ) 
    178180 
    179181      IF( lk_mpp ) CALL dealloc_buffers() 
     
    206208      DEALLOCATE(berg_grid) 
    207209 
    208       DEALLOCATE(initial_width) 
    209       DEALLOCATE(initial_length) 
     210      DEALLOCATE(first_width) 
     211      DEALLOCATE(first_length) 
    210212 
    211213      IF (lwp) WRITE(numout,'(a,i6)') 'icebergs: icb_end complete',narea 
Note: See TracChangeset for help on using the changeset viewer.