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/IOM/iom.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/IOM/iom.F90

    r12939 r12960  
    119119      INTEGER ::   Nis0_save, Nie0_save    !:      and close boundaries in output files 
    120120      INTEGER ::   Njs0_save, Nje0_save    !: 
     121      INTEGER ::   Ni_0_save, Nj_0_save    !: 
    121122      LOGICAL ::   ll_closedef = .TRUE. 
    122123      !!---------------------------------------------------------------------- 
     
    129130         Nis0_save = Nis0   ;   Nie0_save = Nie0 
    130131         Njs0_save = Njs0   ;   Nje0_save = Nje0 
    131          IF( nimpp           ==      1 ) Nis0 = 1 
    132          IF( nimpp + jpi - 1 == jpiglo ) Nie0 = jpi 
    133          IF( njmpp           ==      1 ) Njs0 = 1 
    134          IF( njmpp + jpj - 1 == jpjglo ) Nje0 = jpj 
     132         Ni_0_save = Ni_0   ;   Nj_0_save = Nj_0 
     133         IF( mig( 1 ) ==      1 ) Nis0 = 1 
     134         IF( mig(jpi) == jpiglo ) Nie0 = jpi 
     135         IF( mjg( 1 ) ==      1 ) Njs0 = 1 
     136         IF( mjg(jpj) == jpjglo ) Nje0 = jpj 
     137         Ni_0 = Nie0 - Nis0 + 1 
     138         Nj_0 = Nje0 - Njs0 + 1 
    135139      ENDIF 
    136140      IF ( PRESENT(ld_closedef) ) ll_closedef = ld_closedef 
     
    150154 
    151155      SELECT CASE ( nleapy )        ! Choose calendar for IOIPSL 
    152       CASE ( 1)   ; CALL xios_define_calendar( TYPE = "Gregorian", time_origin = xios_date(irefyear,irefmonth,irefday,00,00,00), & 
    153           &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
    154       CASE ( 0)   ; CALL xios_define_calendar( TYPE = "NoLeap"   , time_origin = xios_date(irefyear,irefmonth,irefday,00,00,00), & 
    155           &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
    156       CASE (30)   ; CALL xios_define_calendar( TYPE = "D360"     , time_origin = xios_date(irefyear,irefmonth,irefday,00,00,00), & 
    157           &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
     156      CASE ( 1)   ;   CALL xios_define_calendar( TYPE = "Gregorian", time_origin = xios_date(irefyear,irefmonth,irefday,0,0,0),  & 
     157          &                                                          start_date  = xios_date(   nyear,   nmonth,   nday,0,0,0) ) 
     158      CASE ( 0)   ;   CALL xios_define_calendar( TYPE = "NoLeap"   , time_origin = xios_date(irefyear,irefmonth,irefday,0,0,0),  & 
     159          &                                                          start_date  = xios_date(   nyear,   nmonth,   nday,0,0,0) ) 
     160      CASE (30)   ;   CALL xios_define_calendar( TYPE = "D360"     , time_origin = xios_date(irefyear,irefmonth,irefday,0,0,0),  & 
     161          &                                                          start_date  = xios_date(   nyear,   nmonth,   nday,0,0,0) ) 
    158162      END SELECT 
    159163 
     
    284288         Nis0 = Nis0_save   ;   Nie0 = Nie0_save 
    285289         Njs0 = Njs0_save   ;   Nje0 = Nje0_save 
     290         Ni_0 = Ni_0_save   ;   Nj_0 = Nj_0_save 
    286291      ENDIF 
    287292#endif 
     
    11621167            ELSE   !   not a 1D array as pv_r1d requires jpdom_unknown 
    11631168               ! we do not read the overlap and the extra-halos -> from Nis0 to Nie0 and from Njs0 to Nje0  
    1164                IF( idom == jpdom_global )   istart(1:2) = (/ mig(Nis0)-nn_hls, mjg(Njs0)-nn_hls /) 
     1169               IF( idom == jpdom_global )   istart(1:2) = (/ mig0(Nis0), mjg0(Njs0) /) 
    11651170               icnt(1:2) = (/ Ni_0, Nj_0 /) 
    11661171               IF( PRESENT(pv_r3d) ) THEN 
Note: See TracChangeset for help on using the changeset viewer.