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 15662 for NEMO/branches/UKMO/NEMO_4.0.4_GO8_paquage_branch/src/OCE/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2022-01-19T19:47:22+01:00 (2 years ago)
Author:
jpalmier
Message:

6th and 7th merge : fix a ip and icesheet-river coupling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_GO8_paquage_branch/src/OCE/IOM/restart.F90

    r15658 r15662  
    3030   USE diurnal_bulk 
    3131   USE lib_mpp         ! distribued memory computing library 
     32   USE sbc_oce         ! for icesheet freshwater input variables  
    3233 
    3334   IMPLICIT NONE 
     
    172173                     CALL iom_rstput( kt, nitrst, numrow, 'sshn'   , sshn, ldxios = lwxios      ) 
    173174                     CALL iom_rstput( kt, nitrst, numrow, 'rhop'   , rhop, ldxios = lwxios      ) 
     175 
     176                     IF( lk_oasis) THEN 
     177                     ! nn_coupled_iceshelf_fluxes uninitialised unless lk_oasis=true 
     178                       IF( nn_coupled_iceshelf_fluxes .eq. 1 ) THEN 
     179                          CALL iom_rstput( kt, nitrst, numrow, 'greenland_icesheet_mass', greenland_icesheet_mass ) 
     180                          CALL iom_rstput( kt, nitrst, numrow, 'greenland_icesheet_timelapsed', greenland_icesheet_timelapsed ) 
     181                          CALL iom_rstput( kt, nitrst, numrow, 'greenland_icesheet_mass_roc', greenland_icesheet_mass_rate_of_change ) 
     182                          CALL iom_rstput( kt, nitrst, numrow, 'antarctica_icesheet_mass', antarctica_icesheet_mass ) 
     183                          CALL iom_rstput( kt, nitrst, numrow, 'antarctica_icesheet_timelapsed', antarctica_icesheet_timelapsed ) 
     184                          CALL iom_rstput( kt, nitrst, numrow, 'antarctica_icesheet_mass_roc', antarctica_icesheet_mass_rate_of_change ) 
     185                       ENDIF 
     186                     ENDIF 
    174187                  ! extra variable needed for the ice sheet coupling 
    175188                  IF ( ln_iscpl ) THEN  
     
    320333      ENDIF 
    321334      ! 
     335      IF( iom_varid( numror, 'greenland_icesheet_mass', ldstop = .FALSE. ) > 0 )   THEN 
     336         CALL iom_get( numror, 'greenland_icesheet_mass', greenland_icesheet_mass ) 
     337         CALL iom_get( numror, 'greenland_icesheet_timelapsed', greenland_icesheet_timelapsed ) 
     338         CALL iom_get( numror, 'greenland_icesheet_mass_roc', greenland_icesheet_mass_rate_of_change ) 
     339      ELSE 
     340         greenland_icesheet_mass = 0.0  
     341         greenland_icesheet_mass_rate_of_change = 0.0  
     342         greenland_icesheet_timelapsed = 0.0 
     343      ENDIF 
     344      IF( iom_varid( numror, 'antarctica_icesheet_mass', ldstop = .FALSE. ) > 0 )   THEN 
     345         CALL iom_get( numror, 'antarctica_icesheet_mass', antarctica_icesheet_mass ) 
     346         CALL iom_get( numror, 'antarctica_icesheet_timelapsed', antarctica_icesheet_timelapsed ) 
     347         CALL iom_get( numror, 'antarctica_icesheet_mass_roc', antarctica_icesheet_mass_rate_of_change ) 
     348      ELSE 
     349         antarctica_icesheet_mass = 0.0  
     350         antarctica_icesheet_mass_rate_of_change = 0.0  
     351         antarctica_icesheet_timelapsed = 0.0 
     352      ENDIF 
     353      ! 
    322354      IF( neuler == 0 ) THEN                                  ! Euler restart (neuler=0) 
    323355         tsb  (:,:,:,:) = tsn  (:,:,:,:)                             ! all before fields set to now values 
Note: See TracChangeset for help on using the changeset viewer.