- Timestamp:
- 2016-11-30T15:44:11+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90
r7256 r7398 50 50 USE ioipsl, ONLY : ju2ymds ! for calendar 51 51 USE crs ! Grid coarsening 52 USE crslbclnk 52 53 53 54 IMPLICIT NONE … … 823 824 jstartrow = MAX(1,jstartrow) 824 825 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 826 831 ELSEIF( idom == jpdom_global ) THEN ; istart(1:2) = (/ nimpp , njmpp /) ! icnt(1:2) done below 827 832 ENDIF … … 922 927 !--- overlap areas and extra hallows (mpp) 923 928 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 925 934 ELSEIF( PRESENT(pv_r3d) .AND. idom /= jpdom_unknown ) THEN 926 935 ! this if could be simplified with the new lbc_lnk that works with any size of the 3rd dimension 927 936 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 929 942 ELSE ! put some arbitrary value (a call to lbc_lnk will be done later...) 930 943 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.