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

Ignore:
Timestamp:
2019-08-19T13:28:30+02:00 (5 years ago)
Author:
jcastill
Message:

Changes as in the original branch, plus one bug fix in oce.F90, plus changes to run with the branch but in uncoupled mode - although this is not complete yet

File:
1 edited

Legend:

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

    r11448 r11452  
    4343   USE eosbn2 
    4444   USE sbcrnf   , ONLY : l_rnfcpl 
     45   USE cpl_rnf_1d      ! Coupled runoff using 1D array 
    4546#if defined key_cpl_carbon_cycle 
    4647   USE p4zflx, ONLY : oce_co2 
     
    401402      !                                                      ! ------------------------- ! 
    402403      srcv(jpr_rnf   )%clname = 'O_Runoff' 
    403       IF( TRIM( sn_rcv_rnf%cldes ) == 'coupled' ) THEN 
     404      IF( TRIM( sn_rcv_rnf%cldes ) == 'coupled' .OR. TRIM( sn_rcv_rnf%cldes ) == 'coupled1d' ) THEN 
    404405         srcv(jpr_rnf)%laction = .TRUE. 
    405406         l_rnfcpl              = .TRUE.                      ! -> no need to read runoffs in sbcrnf 
     
    407408         IF(lwp) WRITE(numout,*) 
    408409         IF(lwp) WRITE(numout,*) '   runoffs received from oasis -> force ln_rnf = ', ln_rnf 
     410         ! Written here like this to allow merging with other branches (river mask) 
     411         IF( TRIM( sn_rcv_rnf%cldes ) == 'coupled' ) THEN 
     412           srcv(jpr_rnf)%laction = .TRUE. 
     413         ELSE 
     414           srcv(jpr_rnf)%laction = .FALSE. 
     415         ENDIF 
    409416      ENDIF 
    410417      ! 
     
    761768         ENDIF 
    762769      ENDIF 
     770 
     771      ! Initialise 1D river outflow scheme 
     772      nn_cpl_river = 1 
     773      IF ( TRIM( sn_rcv_rnf%cldes ) == 'coupled1d' ) CALL cpl_rnf_1d_init   ! Coupled runoff using 1D array 
    763774 
    764775      ! 
     
    10721083         ! 
    10731084         !                                                        ! runoffs and calving (added in emp) 
    1074          IF( srcv(jpr_rnf)%laction )     rnf(:,:) = frcv(jpr_rnf)%z3(:,:,1) 
     1085         IF( srcv(jpr_rnf)%laction )     rnf(:,:) = frcv(jpr_rnf)%z3(:,:,1)                
     1086         IF ( TRIM( sn_rcv_rnf%cldes ) == 'coupled1d' ) CALL cpl_rnf_1d_rcv( isec) 
    10751087         IF( srcv(jpr_cal)%laction )     zemp(:,:) = zemp(:,:) - frcv(jpr_cal)%z3(:,:,1) 
    10761088          
     
    13311343    
    13321344 
    1333    SUBROUTINE sbc_cpl_ice_flx( p_frld, palbi, psst, pist ) 
     1345   SUBROUTINE sbc_cpl_ice_flx( kt, p_frld, palbi, psst, pist ) 
    13341346      !!---------------------------------------------------------------------- 
    13351347      !!             ***  ROUTINE sbc_cpl_ice_flx  *** 
     
    13711383      !!                   sprecip             solid precipitation over the ocean   
    13721384      !!---------------------------------------------------------------------- 
     1385      INTEGER, INTENT(in)           ::   kt          ! ocean model time step index 
    13731386      REAL(wp), INTENT(in   ), DIMENSION(:,:)   ::   p_frld     ! lead fraction                [0 to 1] 
    13741387      ! optional arguments, used only in 'mixed oce-ice' case 
     
    13841397      !!---------------------------------------------------------------------- 
    13851398      ! 
     1399      INTEGER  ::   isec                   ! number of seconds since nit000 (assuming rdttra did not change since nit000) 
     1400 
    13861401      IF( nn_timing == 1 )  CALL timing_start('sbc_cpl_ice_flx') 
    13871402      ! 
     
    14321447         CALL iom_put( 'calving_cea', frcv(jpr_cal)%z3(:,:,1) ) 
    14331448      ENDIF 
     1449      isec = ( kt - nit000 ) * NINT( rdttra(1) ) 
     1450      CALL cpl_rnf_1d_rcv( isec) 
    14341451 
    14351452      IF( ln_mixcpl ) THEN 
Note: See TracChangeset for help on using the changeset viewer.