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 15178 for NEMO/branches/UKMO/NEMO_4.0.1_NGMS_couple_dan – NEMO

Ignore:
Timestamp:
2021-08-10T18:12:38+02:00 (3 years ago)
Author:
dancopsey
Message:

Allow just the passing of sea ice fractions and weighted sea ice thicknesses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_NGMS_couple_dan/src/OCE/SBC/sbccpl.F90

    r15163 r15178  
    857857         ssnd(jps_hice:jps_hsnw)%laction = .TRUE. 
    858858         IF ( TRIM( sn_snd_thick%clcat ) == 'yes' ) ssnd(jps_hice:jps_hsnw)%nct = nn_cats_cpl 
     859      CASE ( 'weighted ice' )  
     860         ssnd(jps_hice)%laction = .TRUE. 
     861         IF ( TRIM( sn_snd_thick%clcat ) == 'yes' ) ssnd(jps_hice)%nct = nn_cats_cpl 
    859862      CASE default   ;   CALL ctl_stop( 'sbc_cpl_init: wrong definition of sn_snd_thick%cldes' ) 
    860863      END SELECT 
     
    10691072 
    10701073      IF (ln_couple_test) THEN 
    1071          ! If we're just running a test coupled job then set all  
    1072          ! actions to false for all fields apart from our test field(s) 
    1073          ssnd(:)%laction = .FALSE. 
     1074         ! Turn off coupling fields that can not be turned off via the namelists 
     1075         ! ssnd(jps_toce)%laction = .FALSE. 
    10741076 
    10751077 
     
    23322334                  ztmp3(:,:,1) = ztmp3(:,:,1) + h_i(:,:,jl) * a_i(:,:,jl) 
    23332335                  ztmp4(:,:,1) = ztmp4(:,:,1) + h_s(:,:,jl) * a_i(:,:,jl) 
     2336               ENDDO 
     2337            CASE default                  ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_thick%clcat' ) 
     2338            END SELECT 
     2339         CASE( 'weighted ice' )    
     2340            SELECT CASE( sn_snd_thick%clcat ) 
     2341            CASE( 'yes' )    
     2342               ztmp3(:,:,1:jpl) =  h_i(:,:,1:jpl) * a_i(:,:,1:jpl) 
     2343            CASE( 'no' ) 
     2344               ztmp3(:,:,:) = 0.0 
     2345               DO jl=1,jpl 
     2346                  ztmp3(:,:,1) = ztmp3(:,:,1) + h_i(:,:,jl) * a_i(:,:,jl) 
    23342347               ENDDO 
    23352348            CASE default                  ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_thick%clcat' ) 
Note: See TracChangeset for help on using the changeset viewer.