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 5372 for branches/2015/dev_r5302_CNRS18_HPC_scalability/NEMOGCM/NEMO/LIM_SRC_3/limrhg.F90 – NEMO

Ignore:
Timestamp:
2015-06-05T21:14:36+02:00 (9 years ago)
Author:
mcastril
Message:

ticket #1523 Message Packing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5302_CNRS18_HPC_scalability/NEMOGCM/NEMO/LIM_SRC_3/limrhg.F90

    r5123 r5372  
    377377            END DO 
    378378         END DO 
    379          CALL lbc_lnk( v_ice1  , 'U', -1. )   ;   CALL lbc_lnk( u_ice2  , 'V', -1. )      ! lateral boundary cond. 
     379 
     380 
     381#if defined key_multisend 
     382         CALL lbc_lnk_multi( v_ice1, 'U', -1. , u_ice2, 'V', -1. )      ! lateral boundary cond. 
     383#else 
     384         CALL lbc_lnk( v_ice1, 'U', -1. )   ;   CALL lbc_lnk( u_ice2, 'V', -1. )      ! lateral boundary cond. 
     385#endif 
    380386 
    381387         DO jj = k_j1+1, k_jpj-1 
     
    412418            END DO 
    413419         END DO 
     420 
     421#if defined key_multisend 
     422         CALL lbc_lnk_multi( zs1 , 'T', 1. , zs2, 'T', 1. , zs12, 'F', 1. ) 
     423          
     424#else 
    414425         CALL lbc_lnk( zs1 , 'T', 1. )   ;   CALL lbc_lnk( zs2, 'T', 1. ) 
    415426         CALL lbc_lnk( zs12, 'F', 1. ) 
     427#endif 
     428 
    416429 
    417430         ! Ice internal stresses (Appendix C of Hunke and Dukowicz, 2002) 
     
    570583      END DO 
    571584 
    572       CALL lbc_lnk( u_ice(:,:), 'U', -1. )  
    573       CALL lbc_lnk( v_ice(:,:), 'V', -1. )  
     585#if defined key_multisend 
     586      CALL lbc_lnk_multi( u_ice(:,:), 'U', -1. , v_ice(:,:), 'V', -1. ) 
     587 
     588#else 
     589      CALL lbc_lnk( u_ice(:,:), 'U', -1. ) 
     590      CALL lbc_lnk( v_ice(:,:), 'V', -1. ) 
     591#endif 
     592 
    574593#if defined key_agrif && defined key_lim2 
    575594      CALL agrif_rhg_lim2( nn_nevp , nn_nevp, 'U' ) 
     
    595614      END DO 
    596615 
    597       CALL lbc_lnk( u_ice2(:,:), 'V', -1. )  
     616#if defined key_multisend 
     617      CALL lbc_lnk_multi( u_ice2(:,:), 'V', -1. , v_ice1(:,:), 'U', -1. ) 
     618 
     619#else 
     620      CALL lbc_lnk( u_ice2(:,:), 'V', -1. ) 
    598621      CALL lbc_lnk( v_ice1(:,:), 'U', -1. ) 
     622#endif 
    599623 
    600624      ! Recompute delta, shear and div, inputs for mechanical redistribution  
     
    642666      END DO 
    643667 
     668#if defined key_multisend 
     669      ! Lateral boundary condition 
     670      CALL lbc_lnk_multi( divu_i (:,:), 'T', 1. , delta_i(:,:), 'T', 1. ,  shear_i(:,:), 'T', 1. ) 
     671      ! CALL lbc_lnk( shear_i(:,:), 'F', 1. ) 
     672 
     673#else 
    644674      ! Lateral boundary condition 
    645675      CALL lbc_lnk( divu_i (:,:), 'T', 1. ) 
     
    647677      ! CALL lbc_lnk( shear_i(:,:), 'F', 1. ) 
    648678      CALL lbc_lnk( shear_i(:,:), 'T', 1. ) 
     679#endif 
    649680 
    650681      ! * Store the stress tensor for the next time step 
Note: See TracChangeset for help on using the changeset viewer.