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

Ignore:
Timestamp:
2017-06-28T16:48:39+02:00 (7 years ago)
Author:
frrh
Message:

Update branch in line with current head of GO6 package branch at revision 8104.

File:
1 edited

Legend:

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

    r8136 r8235  
    242242         &                  sn_rcv_qns , sn_rcv_emp   , sn_rcv_rnf   , sn_rcv_cal   , sn_rcv_iceflx,  & 
    243243         &                  sn_rcv_co2 , sn_rcv_grnm  , sn_rcv_antm  , sn_rcv_ts_ice, nn_cplmodel  ,  & 
    244          &                  ln_usecplmask, ln_coupled_iceshelf_fluxes, ln_iceshelf_init_atmos,        & 
    245          &                  rn_greenland_calving_fraction, & 
    246          &                  rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance 
     244         &                  ln_usecplmask, nn_coupled_iceshelf_fluxes, ln_iceshelf_init_atmos,        & 
     245         &                  rn_greenland_total_fw_flux, rn_greenland_calving_fraction, & 
     246         &                  rn_antarctica_total_fw_flux, rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance 
    247247      !!--------------------------------------------------------------------- 
    248248 
     
    314314         WRITE(numout,*)'  nn_cplmodel                         = ', nn_cplmodel 
    315315         WRITE(numout,*)'  ln_usecplmask                       = ', ln_usecplmask 
    316          WRITE(numout,*)'  ln_coupled_iceshelf_fluxes          = ', ln_coupled_iceshelf_fluxes 
     316         WRITE(numout,*)'  nn_coupled_iceshelf_fluxes          = ', nn_coupled_iceshelf_fluxes 
    317317         WRITE(numout,*)'  ln_iceshelf_init_atmos              = ', ln_iceshelf_init_atmos 
     318         WRITE(numout,*)'  rn_greenland_total_fw_flux         = ', rn_greenland_total_fw_flux 
     319         WRITE(numout,*)'  rn_antarctica_total_fw_flux        = ', rn_antarctica_total_fw_flux 
    318320         WRITE(numout,*)'  rn_greenland_calving_fraction       = ', rn_greenland_calving_fraction 
    319321         WRITE(numout,*)'  rn_antarctica_calving_fraction      = ', rn_antarctica_calving_fraction 
     
    957959      ncpl_qsr_freq = 86400 / ncpl_qsr_freq 
    958960 
    959       IF( ln_coupled_iceshelf_fluxes ) THEN 
     961      IF( nn_coupled_iceshelf_fluxes .gt. 0 ) THEN 
    960962          ! Crude masks to separate the Antarctic and Greenland icesheets. Obviously something 
    961963          ! more complicated could be done if required. 
     
    13451347      ENDIF 
    13461348 
    1347       IF( srcv(jpr_grnm)%laction ) THEN 
     1349      IF( srcv(jpr_grnm)%laction .AND. nn_coupled_iceshelf_fluxes == 1 ) THEN 
    13481350         greenland_icesheet_mass_array(:,:) = frcv(jpr_grnm)%z3(:,:,1) 
    13491351         ! take average over ocean points of input array to avoid cumulative error over time 
     
    13771379         IF(lwp) WRITE(numout,*) 'Greenland icesheet mass rate of change (kg/s) is ', greenland_icesheet_mass_rate_of_change 
    13781380         IF(lwp) WRITE(numout,*) 'Greenland icesheet seconds lapsed since last change is ', greenland_icesheet_timelapsed 
     1381      ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 
     1382         greenland_icesheet_mass_rate_of_change = rn_greenland_total_fw_flux 
    13791383      ENDIF 
    13801384 
    13811385      !                                                        ! land ice masses : Antarctica 
    1382       IF( srcv(jpr_antm)%laction ) THEN 
     1386      IF( srcv(jpr_antm)%laction .AND. nn_coupled_iceshelf_fluxes == 1 ) THEN 
    13831387         antarctica_icesheet_mass_array(:,:) = frcv(jpr_antm)%z3(:,:,1) 
    13841388         ! take average over ocean points of input array to avoid cumulative error from rounding errors over time 
     
    14121416         IF(lwp) WRITE(numout,*) 'Antarctica icesheet mass rate of change (kg/s) is ', antarctica_icesheet_mass_rate_of_change 
    14131417         IF(lwp) WRITE(numout,*) 'Antarctica icesheet seconds lapsed since last change is ', antarctica_icesheet_timelapsed 
     1418      ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 
     1419         antarctica_icesheet_mass_rate_of_change = rn_antarctica_total_fw_flux 
    14141420      ENDIF 
    14151421 
Note: See TracChangeset for help on using the changeset viewer.