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 7351 for branches/2016/dev_INGV_UKMO_2016/NEMOGCM/TOOLS/SIREN/src/domain.f90 – NEMO

Ignore:
Timestamp:
2016-11-28T17:04:10+01:00 (7 years ago)
Author:
emanuelaclementi
Message:

ticket #1805 step 3: /2016/dev_INGV_UKMO_2016 aligned to the trunk at revision 7161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_INGV_UKMO_2016/NEMOGCM/TOOLS/SIREN/src/domain.f90

    r5617 r7351  
    12971297   !> @date September, 2014 
    12981298   !> - take into account number of ghost cell 
     1299   !> @date February, 2016 
     1300   !> - number of extra point is the MAX (not the MIN) of zero and asess value.  
    12991301   ! 
    13001302   !> @param[inout] td_dom domain strcuture 
     
    13441346                  td_dom%i_imin      = td_dom%i_imin - td_dom%i_iextra(1) 
    13451347               ELSE ! td_dom%i_imin - il_iext <= td_dom%i_ghost0(jp_I,1)*ip_ghost 
    1346                   td_dom%i_iextra(1) = MIN(0, & 
     1348                  td_dom%i_iextra(1) = MAX(0, & 
    13471349                  &                         td_dom%i_imin - & 
    13481350                  &                         td_dom%i_ghost0(jp_I,1)*ip_ghost -1) 
     
    13561358               ELSE ! td_dom%i_imax + il_iext >= & 
    13571359                    !  td_dom%t_dim0(1)%i_len - td_dom%i_ghost0(jp_I,2)*ip_ghost 
    1358                   td_dom%i_iextra(2) = MIN(0, & 
     1360                  td_dom%i_iextra(2) = MAX( 0, & 
    13591361                  &                         td_dom%t_dim0(1)%i_len - & 
    13601362                  &                         td_dom%i_ghost0(jp_I,2)*ip_ghost - & 
     
    13641366 
    13651367            ELSE ! td_dom%i_ew0 >= 0 
     1368 
    13661369               ! EW cyclic 
    13671370               IF( td_dom%i_imin - il_iext > 0 )THEN 
     
    13911394            ! nothing to be done 
    13921395         ELSE 
     1396 
    13931397            IF( td_dom%i_jmin - il_jext > td_dom%i_ghost0(jp_J,1)*ip_ghost )THEN 
    13941398               td_dom%i_jextra(1) = il_jext 
    13951399               td_dom%i_jmin      = td_dom%i_jmin - td_dom%i_jextra(1) 
    13961400            ELSE ! td_dom%i_jmin - il_jext <= td_dom%i_ghost0(jp_J,1)*ip_ghost 
    1397                td_dom%i_jextra(1) = MIN(0, & 
     1401               td_dom%i_jextra(1) = MAX( 0, & 
    13981402               &                         td_dom%i_jmin - & 
    13991403               &                         td_dom%i_ghost0(jp_J,1)*ip_ghost - 1) 
     
    14071411            ELSE ! td_dom%i_jmax + il_jext >= & 
    14081412                 !  td_dom%t_dim0(2)%i_len - td_dom%i_ghost0(jp_J,2)*ip_ghost 
    1409                td_dom%i_jextra(2) = MIN(0, & 
     1413               td_dom%i_jextra(2) = MAX( 0, & 
    14101414               &                         td_dom%t_dim0(2)%i_len - & 
    14111415               &                         td_dom%i_ghost0(jp_J,2)*ip_ghost - & 
Note: See TracChangeset for help on using the changeset viewer.