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 5823 for branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90 – NEMO

Ignore:
Timestamp:
2015-10-22T17:18:18+02:00 (9 years ago)
Author:
mathiot
Message:

ice sheet coupling : add comments, rm PRINT statements, cosmetic changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90

    r5820 r5823  
    140140      ! 2 -  Content variations ! 
    141141      ! ------------------------ ! 
     142      ! glob_sum_full is needed because you keep the full interior domain to compute the sum (iscpl) 
    142143      zdiff_v2 = 0._wp 
    143144      zdiff_hc = 0._wp 
     
    160161            z2d1(:,:) = surf(:,:) * ( tsn(:,:,1,jp_sal) * sshn(:,:) - ssh_sc_loc_ini(:,:) )  
    161162         END IF 
    162          z_ssh_hc = glob_sum( z2d0 )  
    163          z_ssh_sc = glob_sum( z2d1 )  
     163         z_ssh_hc = glob_sum_full( z2d0 )  
     164         z_ssh_sc = glob_sum_full( z2d1 )  
    164165      ENDIF 
    165166 
     
    201202!      ENDIF 
    202203!!gm end 
    203       IF ( lk_vvl ) THEN 
    204          IF (lwp) PRINT *, 'cons heat : ', kt, zdiff_hc / zvol_tot, zdiff_sc / zvol_tot  
    205          IF (lwp) PRINT *, 'cons volu : ', kt, zdiff_v2 * 1.e-9       
    206       ELSE 
    207          IF (lwp) PRINT *, 'cons heat : ', kt, zdiff_hc1 * 1.e-20 * rau0 * rcp, zdiff_sc1 * 1.e-9 
    208          IF (lwp) PRINT *, 'cons vol  : ', kt, zdiff_v1 * 1.e-9       
    209       END IF 
    210204      IF( lk_vvl ) THEN 
    211205        CALL iom_put( 'bgtemper' , zdiff_hc / zvol_tot )              ! Temperature variation (C)  
     
    269263              CALL iom_get( numror, 'frc_wn_s', frc_wn_s ) 
    270264           ENDIF 
    271            CALL iom_get( numror, jpdom_autoglo, 'surf_ini', surf_ini ) 
     265           CALL iom_get( numror, jpdom_autoglo, 'surf_ini', surf_ini ) ! ice sheet coupling 
    272266           CALL iom_get( numror, jpdom_autoglo, 'ssh_ini', ssh_ini ) 
    273267           CALL iom_get( numror, jpdom_autoglo, 'e3t_ini', e3t_ini ) 
     
    323317           CALL iom_rstput( kt, nitrst, numrow, 'frc_wn_s', frc_wn_s ) 
    324318        ENDIF 
    325         CALL iom_rstput( kt, nitrst, numrow, 'surf_ini', surf_ini ) 
     319        CALL iom_rstput( kt, nitrst, numrow, 'surf_ini', surf_ini )      ! ice sheet coupling 
    326320        CALL iom_rstput( kt, nitrst, numrow, 'ssh_ini', ssh_ini ) 
    327321        CALL iom_rstput( kt, nitrst, numrow, 'e3t_ini', e3t_ini ) 
Note: See TracChangeset for help on using the changeset viewer.