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 13265 for NEMO/branches/2020/tickets_2494_2375/src/OCE/ICB/icbini.F90 – NEMO

Ignore:
Timestamp:
2020-07-08T13:34:28+02:00 (4 years ago)
Author:
mathiot
Message:

ticket #2494 and #2375: ticket #2494 changes and part of ticket #2375 (lbc_icb_lnk on extended variable at T point removed), ff_e initialisation and lbc_lnk move in the icbini.F90; tests on possible useless lbc_lnk in icbclv not yet done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/tickets_2494_2375/src/OCE/ICB/icbini.F90

    r12489 r13265  
    8282      ff_e(:,:) = 0._wp   ;   tt_e(:,:) = 0._wp   ; 
    8383      fr_e(:,:) = 0._wp   ; 
     84      ! prepration to Nacho work 
     85      ! e3t_e 
     86      ! tt3d_e 
     87      ! uo3d_e 
     88      ! vo3d_e 
     89      ! 
    8490#if defined key_si3 
    8591      hi_e(:,:) = 0._wp   ; 
     
    242248      CALL lbc_lnk_icb( 'icbini', umask_e, 'T', +1._wp, 1, 1 ) 
    243249      CALL lbc_lnk_icb( 'icbini', vmask_e, 'T', +1._wp, 1, 1 ) 
    244       ! 
     250 
     251      ! definition of extended lat/lon array needed by icb_bilin_h 
     252      rlon_e(:,:) = 0._wp     ;  rlon_e(1:jpi,1:jpj) = glamt(:,:)  
     253      rlat_e(:,:) = 0._wp     ;  rlat_e(1:jpi,1:jpj) = gphit(:,:) 
     254      CALL lbc_lnk_icb( 'icbini', rlon_e, 'T', +1._wp, 1, 1 ) 
     255      CALL lbc_lnk_icb( 'icbini', rlat_e, 'T', +1._wp, 1, 1 ) 
     256      ! 
     257      ! definnitionn of extennded ff_f array needed by icb_utl_interp 
     258      ff_e(:,:) = 0._wp       ;  ff_e(1:jpi,1:jpj) = ff_f(:,:) 
     259      CALL lbc_lnk_icb( 'icbini', ff_e, 'F', +1._wp, 1, 1 ) 
     260 
    245261      ! assign each new iceberg with a unique number constructed from the processor number 
    246262      ! and incremented by the total number of processors 
     
    338354               localpt%xi = REAL( mig(ji), wp ) 
    339355               localpt%yj = REAL( mjg(jj), wp ) 
    340                localpt%lon = icb_utl_bilin(glamt, localpt%xi, localpt%yj, 'T' ) 
    341                localpt%lat = icb_utl_bilin(gphit, localpt%xi, localpt%yj, 'T' ) 
     356               CALL icb_utl_interp( localpt%xi, localpt%yj, plat=localpt%lat, plon=localpt%lon )    
    342357               localpt%mass      = rn_initial_mass     (iberg) 
    343358               localpt%thickness = rn_initial_thickness(iberg) 
Note: See TracChangeset for help on using the changeset viewer.