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 8939 for branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC – NEMO

Ignore:
Timestamp:
2017-12-07T17:53:39+01:00 (6 years ago)
Author:
clem
Message:

mostly cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r8934 r8939  
    3232   USE cpl_oasis3     ! OASIS3 coupling 
    3333   USE geo2ocean      !  
    34    USE oce   , ONLY : tsn, un, vn, sshn, ub, vb, sshb, fraqsr_1lev 
     34   USE oce     , ONLY : tsn, un, vn, sshn, ub, vb, sshb, fraqsr_1lev 
    3535   USE ocealb         !  
    3636   USE eosbn2         !  
    37    USE sbcrnf, ONLY : l_rnfcpl 
    38    USE sbcisf   , ONLY : l_isfcpl 
     37   USE sbcrnf  , ONLY : l_rnfcpl 
     38   USE sbcisf  , ONLY : l_isfcpl 
    3939#if defined key_cice 
    4040   USE ice_domain_size, only: ncat 
     
    12431243      ! needed by Met Office 
    12441244      IF( srcv(jpr_ts_ice)%laction ) THEN  
    1245         DO jn = 1, jpl  
    1246           DO jj = 1, jpj  
    1247             DO ji = 1, jpi  
    1248               IF (frcv(jpr_ts_ice)%z3(ji,jj,jn) > 0.0) THEN  
    1249                 tsfc_ice(ji,jj,jn) = 0.0  
    1250               ELSE IF (frcv(jpr_ts_ice)%z3(ji,jj,jn) < -60.0) THEN  
    1251                 tsfc_ice(ji,jj,jn) = -60.0  
    1252               ELSE  
    1253                 tsfc_ice(ji,jj,jn) = frcv(jpr_ts_ice)%z3(ji,jj,jn)  
    1254               ENDIF  
    1255             END DO  
    1256           END DO  
    1257         END DO  
     1245         WHERE    ( frcv(jpr_ts_ice)%z3(:,:,:) > 0.0  )   ;   tsfc_ice(:,:,:) = 0.0  
     1246         ELSEWHERE( frcv(jpr_ts_ice)%z3(:,:,:) < -60. )   ;   tsfc_ice(:,:,:) = -60. 
     1247         ELSEWHERE                                        ;   tsfc_ice(:,:,:) = frcv(jpr_ts_ice)%z3(:,:,:) 
     1248         END WHERE 
    12581249      ENDIF  
    12591250#endif 
     
    20662057#if defined key_lim3       
    20672058      IF( ln_meto_cpl ) THEN 
    2068          !                                                      ! ========================= ! 
    2069          SELECT CASE( TRIM( sn_rcv_iceflx%cldes ) )             !    topmelt and botmelt    ! 
    2070          !                                                      ! ========================= ! 
     2059         !                                                   ! ========================= ! 
     2060         SELECT CASE( TRIM( sn_rcv_iceflx%cldes ) )          !  ice topmelt and botmelt  ! 
     2061         !                                                   ! ========================= ! 
    20712062         CASE ('coupled') 
    20722063            qml_ice(:,:,:) = frcv(jpr_topm)%z3(:,:,:) * a_i(:,:,:) 
     
    21862177         IF( ssnd(jps_tmix)%laction )   CALL cpl_snd( jps_tmix, isec, RESHAPE ( ztmp1, (/jpi,jpj,1/) ), info ) 
    21872178      ENDIF 
    2188  
     2179      ! 
     2180      !                                                      ! ------------------------- ! 
     2181      !                                                      ! 1st layer ice/snow temp.  ! 
     2182      !                                                      ! ------------------------- ! 
    21892183#if defined key_lim3 
    2190       !!!!! Getting NEMO4-LIM working at Met Office 
    2191       ! Top layer ice temperature 
     2184      ! needed by  Met Office 
    21922185      IF( ssnd(jps_ttilyr)%laction) THEN 
    21932186         SELECT CASE( sn_snd_ttilyr%cldes) 
     
    21982191         IF( ssnd(jps_ttilyr)%laction )   CALL cpl_snd( jps_ttilyr, isec, ztmp3, info ) 
    21992192      ENDIF 
    2200       !!!!! 
    22012193#endif 
    2202  
    22032194      !                                                      ! ------------------------- ! 
    22042195      !                                                      !           Albedo          ! 
     
    23152306 
    23162307#if defined key_lim3 
    2317       ! NEMO4 - Jules coupling - Met Office 
    2318       ! Send meltpond fields   
     2308      !                                                      ! ------------------------- ! 
     2309      !                                                      !      Ice melt ponds       !  
     2310      !                                                      ! ------------------------- ! 
     2311      ! needed by Met Office 
    23192312      IF( ssnd(jps_a_p)%laction .OR. ssnd(jps_ht_p)%laction ) THEN  
    23202313         SELECT CASE( sn_snd_mpnd%cldes)   
     
    23312324                 ztmp4(:,:,1) = ztmp4(:,:,1) + v_ip(:,:,jpl)  
    23322325               ENDDO   
    2333             CASE default    ;   CALL ctl_stop( 'sbc_cpl_mpd: wrong definition of sn_snd_mpnd%clcat' )   
     2326            CASE default   ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_mpnd%clcat' )   
    23342327            END SELECT   
    2335          CASE( 'default' )    ;   CALL ctl_stop( 'sbc_cpl_mpd: wrong definition of sn_snd_mpnd%cldes' )      
     2328         CASE default      ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_mpnd%cldes' )      
    23362329         END SELECT   
    2337          IF( ssnd(jps_a_p)%laction )   CALL cpl_snd( jps_a_p, isec, ztmp3, info )      
     2330         IF( ssnd(jps_a_p)%laction  )   CALL cpl_snd( jps_a_p , isec, ztmp3, info )      
    23382331         IF( ssnd(jps_ht_p)%laction )   CALL cpl_snd( jps_ht_p, isec, ztmp4, info )      
    2339          !  
    2340          ! Send ice effective conductivity  
     2332      ENDIF  
     2333      !  
     2334      !                                                      ! ------------------------- ! 
     2335      !                                                      !     Ice conductivity      !  
     2336      !                                                      ! ------------------------- ! 
     2337      ! needed by Met Office 
     2338      IF( ssnd(jps_kice)%laction ) THEN  
    23412339         SELECT CASE( sn_snd_cond%cldes)  
    23422340         CASE( 'weighted ice' )     
    23432341            SELECT CASE( sn_snd_cond%clcat )  
    23442342            CASE( 'yes' )     
    2345                   ztmp3(:,:,1:jpl) =  cnd_ice(:,:,1:jpl) * a_i(:,:,1:jpl)  
     2343          ztmp3(:,:,1:jpl) =  cnd_ice(:,:,1:jpl) * a_i(:,:,1:jpl)  
    23462344            CASE( 'no' )  
    23472345               ztmp3(:,:,:) = 0.0  
     
    23492347                 ztmp3(:,:,1) = ztmp3(:,:,1) + cnd_ice(:,:,jl) * a_i(:,:,jl)  
    23502348               ENDDO  
    2351             CASE default                  ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_cond%clcat' )  
     2349            CASE default   ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_cond%clcat' )  
    23522350            END SELECT  
    23532351         CASE( 'ice only' )     
    23542352           ztmp3(:,:,1:jpl) = cnd_ice(:,:,1:jpl)  
     2353         CASE default      ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_cond%cldes' )      
    23552354         END SELECT  
    23562355         IF( ssnd(jps_kice)%laction )   CALL cpl_snd( jps_kice, isec, ztmp3, info )  
    23572356      ENDIF  
    2358       !    
    2359       !!!!! 
    23602357#endif 
    23612358 
     
    26822679 
    26832680#if defined key_lim3 
    2684       ! NEMO4 - Jules coupling - Met Office 
     2681      !                                                      ! ------------------------- ! 
     2682      !                                                      ! Sea surface freezing temp !  
     2683      !                                                      ! ------------------------- ! 
     2684      ! needed by Met Office 
    26852685      CALL eos_fzp(tsn(:,:,1,jp_sal), sstfrz) 
    26862686      ztmp1(:,:) = sstfrz(:,:) + rt0 
Note: See TracChangeset for help on using the changeset viewer.