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 9242 for branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2018-01-16T15:42:45+01:00 (6 years ago)
Author:
dancopsey
Message:

Fixed receiving of up to 2000 rivers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r8212 r9242  
    4343   USE eosbn2 
    4444   USE sbcrnf   , ONLY : l_rnfcpl 
     45   USE cpl_rnf_1d, ONLY : cpl_rnf_1D_rcv      ! Coupled runoff using 1D array 
    4546#if defined key_cpl_carbon_cycle 
    4647   USE p4zflx, ONLY : oce_co2 
     
    865866      DO jn = 1, jprcv                                          ! received fields sent by the atmosphere 
    866867         IF( srcv(jn)%laction )   CALL cpl_rcv( jn, isec, frcv(jn)%z3, xcplmask(:,:,1:nn_cplmodel), nrcvinfo(jn) ) 
    867       END DO 
    868        
    869       CALL runoff_rcv( isec)       
     868      END DO      
    870869 
    871870      !                                                      ! ========================= ! 
     
    10721071         ! 
    10731072         !                                                        ! runoffs and calving (added in emp) 
    1074          IF( srcv(jpr_rnf)%laction )     rnf(:,:) = frcv(jpr_rnf)%z3(:,:,1) 
     1073         IF( srcv(jpr_rnf)%laction )     rnf(:,:) = frcv(jpr_rnf)%z3(:,:,1)                
     1074         CALL cpl_rnf_1d_rcv( isec) 
    10751075         IF( srcv(jpr_cal)%laction )     zemp(:,:) = zemp(:,:) - frcv(jpr_cal)%z3(:,:,1) 
    10761076          
     
    13311331    
    13321332 
    1333    SUBROUTINE sbc_cpl_ice_flx( p_frld, palbi, psst, pist ) 
     1333   SUBROUTINE sbc_cpl_ice_flx( kt, p_frld, palbi, psst, pist ) 
    13341334      !!---------------------------------------------------------------------- 
    13351335      !!             ***  ROUTINE sbc_cpl_ice_flx  *** 
     
    13711371      !!                   sprecip             solid precipitation over the ocean   
    13721372      !!---------------------------------------------------------------------- 
     1373      INTEGER, INTENT(in)           ::   kt          ! ocean model time step index 
    13731374      REAL(wp), INTENT(in   ), DIMENSION(:,:)   ::   p_frld     ! lead fraction                [0 to 1] 
    13741375      ! optional arguments, used only in 'mixed oce-ice' case 
     
    13841385      !!---------------------------------------------------------------------- 
    13851386      ! 
     1387      INTEGER  ::   isec                   ! number of seconds since nit000 (assuming rdttra did not change since nit000) 
    13861388      IF( nn_timing == 1 )  CALL timing_start('sbc_cpl_ice_flx') 
    13871389      ! 
     
    14321434         CALL iom_put( 'calving_cea', frcv(jpr_cal)%z3(:,:,1) ) 
    14331435      ENDIF 
     1436      isec = ( kt - nit000 ) * NINT( rdttra(1) )  
     1437      CALL cpl_rnf_1d_rcv( isec) 
    14341438 
    14351439      IF( ln_mixcpl ) THEN 
Note: See TracChangeset for help on using the changeset viewer.