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 7398 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2016-11-30T15:44:11+01:00 (8 years ago)
Author:
cbricaud
Message:

coarsening branch: first implementation of coarsening in PISCES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r7256 r7398  
    5050   USE ioipsl, ONLY :  ju2ymds    ! for calendar 
    5151   USE crs             ! Grid coarsening 
     52   USE crslbclnk 
    5253 
    5354   IMPLICIT NONE 
     
    823824                        jstartrow = MAX(1,jstartrow) 
    824825                     ENDIF 
    825                      istart(1:2) = (/ mig(1), mjg(1) + jstartrow - 1 /)  ! icnt(1:2) done below 
     826                     IF( lk_crs .AND. jpi == jpi_crs .AND. jpi .NE. 0  )THEN 
     827                        istart(1:2) = (/ mig_crs(1), mjg_crs(1) + jstartrow - 1 /)  ! icnt(1:2) done below 
     828                     ELSE 
     829                        istart(1:2) = (/ mig(1), mjg(1) + jstartrow - 1 /)  ! icnt(1:2) done below 
     830                     ENDIF 
    826831                  ELSEIF( idom == jpdom_global  ) THEN ; istart(1:2) = (/ nimpp , njmpp  /)  ! icnt(1:2) done below 
    827832                  ENDIF 
     
    922927            !--- overlap areas and extra hallows (mpp) 
    923928            IF(     PRESENT(pv_r2d) .AND. idom /= jpdom_unknown ) THEN 
    924                CALL lbc_lnk( pv_r2d,'Z',-999.,'no0' ) 
     929               IF( lk_crs .AND. jpi == jpi_crs .AND. jpi .NE. 0 )THEN 
     930                  CALL crs_lbc_lnk( pv_r2d,'Z',-999.,'no0') 
     931               ELSE 
     932                  CALL lbc_lnk( pv_r2d,'Z',-999.,'no0' ) 
     933               ENDIF 
    925934            ELSEIF( PRESENT(pv_r3d) .AND. idom /= jpdom_unknown ) THEN 
    926935               ! this if could be simplified with the new lbc_lnk that works with any size of the 3rd dimension 
    927936               IF( icnt(3) == jpk ) THEN 
    928                   CALL lbc_lnk( pv_r3d,'Z',-999.,'no0' ) 
     937                  IF( lk_crs .AND. jpi == jpi_crs .AND. jpi .NE. 0 )THEN 
     938                     CALL crs_lbc_lnk( pv_r3d,'Z',-999.,'no0') 
     939                  ELSE 
     940                     CALL lbc_lnk( pv_r3d,'Z',-999.,'no0' ) 
     941                  ENDIF 
    929942               ELSE   ! put some arbitrary value (a call to lbc_lnk will be done later...) 
    930943                  DO jj = nlcj+1, jpj   ;   pv_r3d(1:nlci, jj, :) = pv_r3d(1:nlci, nlej, :)   ;   END DO 
Note: See TracChangeset for help on using the changeset viewer.