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 12960 for NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2020-05-22T09:05:34+02:00 (4 years ago)
Author:
smasson
Message:

Extra_Halo: additional bugfixes and developments, see #2366

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/DOM/domain.F90

    r12939 r12960  
    215215      !!              - mig0, mjg0: local  domain indices ==> global domain, excluding halos, indices 
    216216      !!              - mi0 , mi1 : global domain indices ==> local  domain indices 
    217       !!              - mj0,, mj1   (global point not in the local domain ==> mi0>mi1 and/or mj0>mj1) 
     217      !!              - mj0 , mj1   (if global point not in the local domain ==> mi0>mi1 and/or mj0>mj1) 
    218218      !!---------------------------------------------------------------------- 
    219219      INTEGER ::   ji, jj   ! dummy loop argument 
     
    228228      !                              ! local domain indices ==> global domain, excluding halos, indices 
    229229      ! 
     230      mig0(:) = mig(:) - nn_hls 
     231      mjg0(:) = mjg(:) - nn_hls   
    230232      ! WARNING: to keep compatibility with the trunk that was including periodocity into the input data,  
    231233      ! we must define mig0 and mjg0 as bellow. 
    232234      ! Once we decide to forget trunk compatibility, we must simply define mig0 and mjg0 as: 
    233 !!$      mig0(:) = mig(:) - nn_hls 
    234 !!$      mjg0(:) = mjg(:) - nn_hls   
    235       mig0(:) = mig(:) - nn_hls + COUNT( (/ jperio == 1 .OR. jperio == 4 .OR. jperio == 6 .OR. jperio == 7 /) ) 
    236       mjg0(:) = mjg(:) - nn_hls + COUNT( (/ jperio == 2 .OR. jperio == 7 /) ) 
     235      mig0_oldcmp(:) = mig0(:) + COUNT( (/ jperio == 1 .OR. jperio == 4 .OR. jperio == 6 .OR. jperio == 7 /) ) 
     236      mjg0_oldcmp(:) = mjg0(:) + COUNT( (/ jperio == 2 .OR. jperio == 7 /) ) 
    237237      ! 
    238238      !                              ! global domain, including halos, indices ==> local domain indices 
Note: See TracChangeset for help on using the changeset viewer.