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

Ignore:
Timestamp:
2017-04-18T12:43:06+02:00 (7 years ago)
Author:
davestorkey
Message:

Commit changes to UKMO branch to implement updated scheme for freshwater input from icesheets for coupled models.

File:
1 edited

Legend:

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

    r7540 r7919  
    240240         &                  sn_rcv_qns , sn_rcv_emp   , sn_rcv_rnf   , sn_rcv_cal   , sn_rcv_iceflx,  & 
    241241         &                  sn_rcv_co2 , sn_rcv_grnm  , sn_rcv_antm  , sn_rcv_ts_ice, nn_cplmodel  ,  & 
    242          &                  ln_usecplmask, ln_coupled_iceshelf_fluxes, ln_iceshelf_init_atmos,        & 
    243          &                  rn_greenland_calving_fraction, & 
    244          &                  rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance 
     242         &                  ln_usecplmask, nn_coupled_iceshelf_fluxes, ln_iceshelf_init_atmos,        & 
     243         &                  rn_greenland_total_fw_input, rn_greenland_calving_fraction, & 
     244         &                  rn_antarctica_total_fw_input, rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance 
    245245      !!--------------------------------------------------------------------- 
    246246 
     
    311311         WRITE(numout,*)'  nn_cplmodel                         = ', nn_cplmodel 
    312312         WRITE(numout,*)'  ln_usecplmask                       = ', ln_usecplmask 
    313          WRITE(numout,*)'  ln_coupled_iceshelf_fluxes          = ', ln_coupled_iceshelf_fluxes 
     313         WRITE(numout,*)'  nn_coupled_iceshelf_fluxes          = ', nn_coupled_iceshelf_fluxes 
    314314         WRITE(numout,*)'  ln_iceshelf_init_atmos              = ', ln_iceshelf_init_atmos 
     315         WRITE(numout,*)'  rn_greenland_total_fw_input         = ', rn_greenland_total_fw_input 
     316         WRITE(numout,*)'  rn_antarctica_total_fw_input        = ', rn_antarctica_total_fw_input 
    315317         WRITE(numout,*)'  rn_greenland_calving_fraction       = ', rn_greenland_calving_fraction 
    316318         WRITE(numout,*)'  rn_antarctica_calving_fraction      = ', rn_antarctica_calving_fraction 
     
    950952      ncpl_qsr_freq = 86400 / ncpl_qsr_freq 
    951953 
    952       IF( ln_coupled_iceshelf_fluxes ) THEN 
     954      IF( nn_coupled_iceshelf_fluxes .gt. 0 ) THEN 
    953955          ! Crude masks to separate the Antarctic and Greenland icesheets. Obviously something 
    954956          ! more complicated could be done if required. 
     
    13431345      ENDIF 
    13441346 
    1345       IF( srcv(jpr_grnm)%laction ) THEN 
     1347      IF( srcv(jpr_grnm)%laction .AND. nn_coupled_iceshelf_fluxes == 1 ) THEN 
    13461348         greenland_icesheet_mass_array(:,:) = frcv(jpr_grnm)%z3(:,:,1) 
    13471349         ! take average over ocean points of input array to avoid cumulative error over time 
     
    13751377         IF(lwp) WRITE(numout,*) 'Greenland icesheet mass rate of change (kg/s) is ', greenland_icesheet_mass_rate_of_change 
    13761378         IF(lwp) WRITE(numout,*) 'Greenland icesheet seconds lapsed since last change is ', greenland_icesheet_timelapsed 
     1379      ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 
     1380         greenland_icesheet_mass_rate_of_change = rn_greenland_total_fw_input 
    13771381      ENDIF 
    13781382 
    13791383      !                                                        ! land ice masses : Antarctica 
    1380       IF( srcv(jpr_antm)%laction ) THEN 
     1384      IF( srcv(jpr_antm)%laction .AND. nn_coupled_iceshelf_fluxes == 1 ) THEN 
    13811385         antarctica_icesheet_mass_array(:,:) = frcv(jpr_antm)%z3(:,:,1) 
    13821386         ! take average over ocean points of input array to avoid cumulative error from rounding errors over time 
     
    14101414         IF(lwp) WRITE(numout,*) 'Antarctica icesheet mass rate of change (kg/s) is ', antarctica_icesheet_mass_rate_of_change 
    14111415         IF(lwp) WRITE(numout,*) 'Antarctica icesheet seconds lapsed since last change is ', antarctica_icesheet_timelapsed 
     1416      ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 
     1417         antarctica_icesheet_mass_rate_of_change = rn_antarctica_total_fw_input 
    14121418      ENDIF 
    14131419 
Note: See TracChangeset for help on using the changeset viewer.