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 4072 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limupdate2.F90 – NEMO

Ignore:
Timestamp:
2013-10-17T15:10:59+02:00 (11 years ago)
Author:
clem
Message:

few rewritings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limupdate2.F90

    r4045 r4072  
    3939   USE wrk_nemo         ! work arrays 
    4040   USE lib_fortran     ! glob_sum 
     41   USE timing          ! Timing 
    4142 
    4243   IMPLICIT NONE 
     
    9596      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zviold, zvsold, zsmvold   ! old ice volume... 
    9697      !!------------------------------------------------------------------- 
     98      IF( nn_timing == 1 )  CALL timing_start('limupdate2') 
    9799 
    98100      CALL wrk_alloc( jpi,jpj,jpl, internal_melt )   ! integer 
     
    558560      !------------ 
    559561      DO jj = 2, jpjm1 
    560          DO ji = fs_2, fs_jpim1 
     562         DO ji = 2, jpim1 
    561563            IF ( at_i(ji,jj) .EQ. 0.0 ) THEN ! what to do if there is no ice 
    562564               IF ( at_i(ji+1,jj) .EQ. 0.0 ) u_ice(ji,jj)   = 0.0 ! right side 
     
    567569         END DO 
    568570      END DO 
     571      !lateral boundary conditions 
     572      CALL lbc_lnk( u_ice(:,:), 'U', -1. ) 
     573      CALL lbc_lnk( v_ice(:,:), 'V', -1. ) 
    569574      !mask velocities 
    570575      u_ice(:,:) = u_ice(:,:) * tmu(:,:) 
    571576      v_ice(:,:) = v_ice(:,:) * tmv(:,:) 
    572       !lateral boundary conditions 
    573       CALL lbc_lnk( u_ice(:,:), 'U', -1. ) 
    574       CALL lbc_lnk( v_ice(:,:), 'V', -1. ) 
    575577  
    576578      !-------------------------------- 
     
    687689      CALL wrk_dealloc( jpi,jpj,jpl,zviold, zvsold, zsmvold )   ! clem 
    688690 
     691      IF( nn_timing == 1 )  CALL timing_stop('limupdate2') 
    689692   END SUBROUTINE lim_update2 
    690693#else 
Note: See TracChangeset for help on using the changeset viewer.