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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/BDY/bdydta.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/BDY/bdydta.F90

    r9810 r10288  
    6060   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    6161   !! $Id$  
    62    !! Software governed by the CeCILL licence (./LICENSE) 
     62   !! Software governed by the CeCILL license (see ./LICENSE) 
    6363   !!---------------------------------------------------------------------- 
    6464CONTAINS 
     
    351351               ENDIF 
    352352#if defined key_si3 
     353               ! convert N-cat fields (input) into jpl-cat (output) 
    353354               IF( cn_ice(jbdy) /= 'none' .AND. nn_ice_dta(jbdy) == 1 ) THEN 
    354355                  jfld_hti = jfld_htit(jbdy) 
    355356                  jfld_hts = jfld_htst(jbdy) 
    356357                  jfld_ai  = jfld_ait(jbdy) 
    357                   IF( nice_cat == 1 ) THEN ! case input cat = 1 
     358                  IF    ( jpl /= 1 .AND. nice_cat == 1 ) THEN                      ! case input cat = 1 
    358359                     CALL ice_var_itd ( bf(jfld_hti)%fnow(:,1,1), bf(jfld_hts)%fnow(:,1,1), bf(jfld_ai)%fnow(:,1,1), & 
    359360                        &               dta_bdy(jbdy)%h_i     , dta_bdy(jbdy)%h_s     , dta_bdy(jbdy)%a_i    ) 
    360                   ELSEIF( nice_cat /= 1 .AND. nice_cat /= jpl ) THEN ! case input cat /=1 and /=jpl 
     361                  ELSEIF( jpl /= 1 .AND. nice_cat /= 1 .AND. nice_cat /= jpl ) THEN ! case input cat /=1 and /=jpl 
    361362                     CALL ice_var_itd2( bf(jfld_hti)%fnow(:,1,:), bf(jfld_hts)%fnow(:,1,:), bf(jfld_ai)%fnow(:,1,:), & 
    362363                        &               dta_bdy(jbdy)%h_i     , dta_bdy(jbdy)%h_s     , dta_bdy(jbdy)%a_i    ) 
Note: See TracChangeset for help on using the changeset viewer.