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 11355 for NEMO/branches/UKMO/NEMO_4.0_GO8_coupled_iodef/src/ICE/icestp.F90 – NEMO

Ignore:
Timestamp:
2019-07-26T11:32:13+02:00 (5 years ago)
Author:
dancopsey
Message:

Add lots of print statements printing out values of files throughout the ocean_ice timestep.. New output will be in files crash_stats_419.out and crash_stats_68.out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_GO8_coupled_iodef/src/ICE/icestp.F90

    r11082 r11355  
    145145#endif 
    146146                                        CALL store_fields             ! Store now ice values 
     147 
     148      IF(narea == 419) THEN 
     149         WRITE(9419,*) 'max emp ice_stp before ice_sbc_tau = ',emp(48,31) 
     150         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     151         WRITE(9419,*) 'qlead(48,31) = ',qlead(48,31) 
     152      ENDIF 
    147153         ! 
    148154         !------------------------------------------------! 
     
    159165                                        CALL ice_rst_opn( kt )        ! Open Ice restart file (if necessary)  
    160166         ! 
     167 
     168      IF(narea == 419) THEN 
     169         WRITE(9419,*) 'max emp ice_stp before ice_dyn = ',emp(48,31) 
     170         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     171         WRITE(9419,*) 'qlead(48,31) = ',qlead(48,31) 
     172      ENDIF 
     173 
    161174         IF( ln_icedyn .AND. .NOT.lk_c1d )   & 
    162175            &                           CALL ice_dyn( kt )            ! -- Ice dynamics 
     
    165178         IF( ln_icethd .AND. ln_bdy )   CALL bdy_ice( kt )            ! -- bdy ice thermo 
    166179         ! 
     180 
     181      IF(narea == 419) THEN 
     182         WRITE(9419,*) 'max emp ice_stp before ice_var_glo2eqv = ',emp(48,31) 
     183         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     184         WRITE(9419,*) 'qlead(48,31) = ',qlead(48,31) 
     185      ENDIF 
     186 
    167187         !                          !==  previous lead fraction and ice volume for flux calculations 
    168188                                        CALL ice_var_glo2eqv          ! h_i and h_s for ice albedo calculation 
     
    183203         !    qprec_ice, qevap_ice 
    184204         !------------------------------------------------------! 
     205 
     206      IF(narea == 419) THEN 
     207         WRITE(9419,*) 'max emp ice_stp before ice_sbc_flx = ',emp(48,31) 
     208         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     209         WRITE(9419,*) 'qlead(48,31) = ',qlead(48,31) 
     210      ENDIF 
     211 
    185212                                        CALL ice_sbc_flx( kt, ksbc ) 
    186213         !----------------------------! 
    187214         ! --- ice thermodynamics --- ! 
    188215         !----------------------------! 
    189          IF( ln_icethd )                CALL ice_thd( kt )            ! -- Ice thermodynamics       
     216 
     217      IF(narea == 419) THEN 
     218         WRITE(9419,*) 'max emp ice_stp before ice_thd = ',emp(48,31) 
     219         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     220         WRITE(9419,*) 'qlead(48,31) = ',qlead(48,31) 
     221      ENDIF 
     222 
     223         IF( ln_icethd )                CALL ice_thd( kt )            ! -- Ice thermodynamics   
     224 
     225      IF(narea == 419) THEN 
     226         WRITE(9419,*) 'max emp ice_stp before ice_cor = ',emp(48,31) 
     227         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     228      ENDIF 
     229     
    190230         ! 
    191231                                        CALL ice_cor( kt , 2 )        ! -- Corrections 
    192232         ! 
     233 
     234      IF(narea == 419) THEN 
     235         WRITE(9419,*) 'max emp ice_stp before ice_var_glo2eqv = ',emp(48,31) 
     236         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     237      ENDIF 
     238 
    193239                                        CALL ice_var_glo2eqv          ! necessary calls (at least for coupling) 
    194240                                        CALL ice_var_agg( 2 )         ! necessary calls (at least for coupling) 
    195241         ! 
     242 
     243      IF(narea == 419) THEN 
     244         WRITE(9419,*) 'max emp ice_stp before ice_update_flx = ',emp(48,31) 
     245         WRITE(9419,*) 'wfx_opw(48,31) = ',wfx_opw(48,31) 
     246      ENDIF 
     247 
    196248                                        CALL ice_update_flx( kt )     ! -- Update ocean surface mass, heat and salt fluxes 
    197249         ! 
     250 
     251      IF(narea == 419) THEN 
     252         WRITE(9419,*) 'max emp ice_stp before ice_dia = ',emp(48,31) 
     253      ENDIF 
     254 
    198255         IF( ln_icediahsb )             CALL ice_dia( kt )            ! -- Diagnostics outputs  
    199256         ! 
     
    203260         ! 
    204261         IF( ln_icectl )                CALL ice_ctl( kt )            ! -- alerts in case of model crash 
     262 
     263      IF(narea == 419) THEN 
     264         WRITE(9419,*) 'max emp ice_stp at end = ',emp(48,31) 
     265      ENDIF 
     266 
    205267         ! 
    206268      ENDIF   ! End sea-ice time step only 
Note: See TracChangeset for help on using the changeset viewer.