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 7162 for branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2016-11-01T14:23:51+01:00 (7 years ago)
Author:
cetlod
Message:

new top interface : Add PISCES quota model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r6722 r7162  
    2020   USE dom_oce        ! ocean space and time domain 
    2121   USE sbc_oce        ! Surface boundary condition: ocean fields 
     22   USE trc_oce        ! share SMS/Ocean variables 
    2223   USE sbc_ice        ! Surface boundary condition: ice fields 
    2324   USE sbcapr         ! Stochastic param. : ??? 
     
    3637   USE albedo         !  
    3738   USE eosbn2         !  
    38    USE sbcrnf  , ONLY : l_rnfcpl 
    39 #if defined key_cpl_carbon_cycle 
    40    USE p4zflx, ONLY : oce_co2 
    41 #endif 
     39   USE sbcrnf, ONLY : l_rnfcpl 
    4240#if defined key_cice 
    4341   USE ice_domain_size, only: ncat 
     
    467465      !                                                      !      Atmospheric CO2      ! 
    468466      !                                                      ! ------------------------- ! 
    469       srcv(jpr_co2 )%clname = 'O_AtmCO2'   ;   IF( TRIM(sn_rcv_co2%cldes   ) == 'coupled' )    srcv(jpr_co2 )%laction = .TRUE. 
     467      srcv(jpr_co2 )%clname = 'O_AtmCO2'    
     468      IF( TRIM(sn_rcv_co2%cldes   ) == 'coupled' )  THEN 
     469         srcv(jpr_co2 )%laction = .TRUE. 
     470         l_co2cpl = .TRUE. 
     471         IF(lwp) WRITE(numout,*) 
     472         IF(lwp) WRITE(numout,*) '   Atmospheric pco2 received from oasis ' 
     473         IF(lwp) WRITE(numout,*) 
     474      ENDIF 
    470475      !                                                      ! ------------------------- ! 
    471476      !                                                      !   topmelt and botmelt     !    
     
    984989      ENDIF 
    985990 
    986 #if defined key_cpl_carbon_cycle 
    987991      !                                                      ! ================== ! 
    988992      !                                                      ! atmosph. CO2 (ppm) ! 
    989993      !                                                      ! ================== ! 
    990994      IF( srcv(jpr_co2)%laction )   atm_co2(:,:) = frcv(jpr_co2)%z3(:,:,1) 
    991 #endif 
    992995 
    993996      !  Fields received by SAS when OASIS coupling 
     
    19191922         IF( ssnd(jps_hsnw)%laction )   CALL cpl_snd( jps_hsnw, isec, ztmp4, info ) 
    19201923      ENDIF 
    1921       ! 
    1922 #if defined key_cpl_carbon_cycle 
    19231924      !                                                      ! ------------------------- ! 
    19241925      !                                                      !  CO2 flux from PISCES     !  
    19251926      !                                                      ! ------------------------- ! 
    1926       IF( ssnd(jps_co2)%laction )   CALL cpl_snd( jps_co2, isec, RESHAPE ( oce_co2, (/jpi,jpj,1/) ) , info ) 
    1927       ! 
    1928 #endif 
     1927      IF( ssnd(jps_co2)%laction .AND. l_co2cpl )   CALL cpl_snd( jps_co2, isec, RESHAPE ( oce_co2, (/jpi,jpj,1/) ) , info ) 
     1928      ! 
    19291929      !                                                      ! ------------------------- ! 
    19301930      IF( ssnd(jps_ocx1)%laction ) THEN                      !      Surface current      ! 
Note: See TracChangeset for help on using the changeset viewer.