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 15023 for NEMO/trunk/src/OCE/SBC/fldread.F90 – NEMO

Ignore:
Timestamp:
2021-06-18T16:35:25+02:00 (3 years ago)
Author:
gsamson
Message:

merge ticket2680_C1D_PAPA branch back into the trunk; see ticket #2680 for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/SBC/fldread.F90

    r14437 r15023  
    3838   USE ioipsl  , ONLY : ymds2ju, ju2ymds   ! for calendar 
    3939   USE lib_mpp        ! MPP library 
    40    USE lbclnk         ! ocean lateral boundary conditions (C1D case) 
     40   USE lbclnk         ! ocean lateral boundary conditions (online interpolation case) 
    4141    
    4242   IMPLICIT NONE 
     
    356356      INTEGER ::   idvar    ! variable ID 
    357357      INTEGER ::   idmspc   ! number of spatial dimensions 
    358       LOGICAL ::   lmoor    ! C1D case: point data 
    359358      REAL(wp), DIMENSION(:,:,:), POINTER ::   dta_alias   ! short cut 
    360359      !!--------------------------------------------------------------------- 
     
    374373         CALL lbc_lnk( 'fldread', dta_alias(:,:,:), sdjf%cltype, sdjf%zsgn, kfillmode = jpfillcopy ) 
    375374      ELSE                                          ! default case 
    376          ! C1D case: If product of spatial dimensions == ipk, then x,y are of 
    377          ! size 1 (point/mooring data): this must be read onto the central grid point 
    378375         idvar  = iom_varid( sdjf%num, sdjf%clvar ) 
    379376         idmspc = iom_file ( sdjf%num )%ndims( idvar ) 
    380377         IF( iom_file( sdjf%num )%luld( idvar ) )   idmspc = idmspc - 1   ! id of the last spatial dimension 
    381          lmoor  = (  idmspc == 0 .OR. PRODUCT( iom_file( sdjf%num )%dimsz( 1:MAX(idmspc,1) ,idvar ) ) == ipk  )     
    382          ! 
    383          IF( lk_c1d .AND. lmoor ) THEN 
    384             CALL iom_get( sdjf%num, jpdom_unknown, sdjf%clvar, dta_alias(2,2,:), sdjf%nrec(1,iaa) )   ! jpdom_unknown -> no lbc_lnk 
    385             CALL lbc_lnk( 'fldread', dta_alias(:,:,:), 'T', 1., kfillmode = jpfillcopy ) 
    386          ELSE 
    387             CALL iom_get( sdjf%num,  jpdom_global, sdjf%clvar, dta_alias(:,:,:), sdjf%nrec(1,iaa),   & 
    388                &          sdjf%cltype, sdjf%zsgn, kfill = jpfillcopy ) 
    389          ENDIF 
     378         CALL iom_get( sdjf%num,  jpdom_global, sdjf%clvar, dta_alias(:,:,:), sdjf%nrec(1,iaa),   & 
     379            &          sdjf%cltype, sdjf%zsgn, kfill = jpfillcopy ) 
    390380      ENDIF 
    391381      ! 
Note: See TracChangeset for help on using the changeset viewer.