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

Ignore:
Timestamp:
2020-02-12T13:06:25+01:00 (4 years ago)
Author:
dancopsey
Message:

Add print statements

File:
1 edited

Legend:

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

    r11081 r12369  
    8080   USE prtctl         ! Print control 
    8181 
     82   USE lbclnk         ! lateral boundary conditions (or mpp links) 
     83 
    8284   IMPLICIT NONE 
    8385   PRIVATE 
     
    118120      INTEGER, INTENT(in) ::   ksbc    ! flux formulation (user defined, bulk, or Pure Coupled) 
    119121      ! 
    120       INTEGER ::   jl   ! dummy loop index 
     122      INTEGER  :: ji, jj, jk, jl, jn, gi, gj   ! dummy loop indices 
     123      REAL(wp) :: delta_lon, delta_lat, lon_west, lon_east, lat_south, lat_north, lon_print, lat_print 
    121124      !!---------------------------------------------------------------------- 
    122125      ! 
    123126      IF( ln_timing )   CALL timing_start('ice_stp') 
     127 
     128      DO jj = 1, jpj 
     129         DO ji = 1, jpi 
     130 
     131            gi = nimpp + ji - 1 
     132            gj = njmpp + jj - 1 
     133            delta_lon = (glamt(2,jj) - glamt(1,jj))/2.0 
     134            delta_lat = (gphit(ji,2) - gphit(ji,1))/2.0 
     135 
     136            lon_west = glamt(ji,jj) - delta_lon 
     137            lon_east = glamt(ji,jj) + delta_lon 
     138            lat_south = gphit(ji,jj) - delta_lat 
     139            lat_north = gphit(ji,jj) + delta_lat 
     140            to_print_2d(ji,jj) = 0 
     141 
     142            lon_print = 95.0 
     143            lat_print = -63.0  ! For bottom melt investigation 
     144 
     145            IF ( lon_west <= lon_print .AND. lon_print <= lon_east .AND. lat_south <= lat_print .AND. lat_print <= lat_north ) THEN 
     146              to_print_2d(ji,jj) = 1 
     147              write(numout,*)'icethd: location to print: ji, jj, gi,gj, to_print_2d(ji,jj) = ', ji, jj, gi,gj, to_print_2d(ji,jj) 
     148            ENDIF 
     149 
     150            lon_print = 10.0 
     151            lat_print = -62.0   ! For top melt investigation 
     152 
     153            IF ( lon_west <= lon_print .AND. lon_print <= lon_east .AND. lat_south <= lat_print .AND. lat_print <= lat_north ) THEN 
     154              to_print_2d(ji,jj) = 2 
     155              write(numout,*)'icethd: location to print: ji, jj, gi,gj, to_print_2d(ji,jj) = ', ji, jj, gi,gj, to_print_2d(ji,jj) 
     156            ENDIF 
     157 
     158            lon_print = 137.81 
     159            lat_print = -66   ! For conductivity investigation 
     160 
     161            IF ( lon_west <= lon_print .AND. lon_print <= lon_east .AND. lat_south <= lat_print .AND. lat_print <= lat_north ) THEN 
     162              to_print_2d(ji,jj) = 3 
     163              write(numout,*)'icethd: location to print: ji, jj, gi,gj, to_print_2d(ji,jj) = ', ji, jj, gi,gj, to_print_2d(ji,jj) 
     164            ENDIF 
     165 
     166            lon_print = 137.81 - 360.0 
     167 
     168            IF ( lon_west <= lon_print .AND. lon_print <= lon_east .AND. lat_south <= lat_print .AND. lat_print <= lat_north ) THEN 
     169              to_print_2d(ji,jj) = 3 
     170              write(numout,*)'icethd: location to print: ji, jj, gi,gj, to_print_2d(ji,jj) = ', ji, jj, gi,gj, to_print_2d(ji,jj) 
     171            ENDIF 
     172 
     173            lon_print = 8 
     174            lat_print = -67   ! For top melt investigation 
     175 
     176            IF ( lon_west <= lon_print .AND. lon_print <= lon_east .AND. lat_south <= lat_print .AND. lat_print <= lat_north ) THEN 
     177              to_print_2d(ji,jj) = 10 
     178              write(numout,*)'icethd: location to print: ji, jj, gi,gj, to_print_2d(ji,jj) = ', ji, jj, gi,gj, to_print_2d(ji,jj) 
     179            ENDIF 
     180          END DO 
     181        END DO 
     182 
    124183      ! 
    125184      !                                      !-----------------------! 
     
    128187         ! 
    129188         kt_ice = kt                              ! -- Ice model time step 
     189 
     190         write(numout,*)'icestp 0: e_s = ',e_s (42,26,1,1) 
    130191         ! 
    131192         u_oce(:,:) = ssu_m(:,:)                  ! -- mean surface ocean current 
     
    152213         !    utau_ice, vtau_ice = surface ice stress [N/m2] 
    153214         !------------------------------------------------! 
    154                                         CALL ice_sbc_tau( kt, ksbc, utau_ice, vtau_ice )           
     215                                        CALL ice_sbc_tau( kt, ksbc, utau_ice, vtau_ice )       
     216 
     217         write(numout,*)'icestp 1: e_s = ',e_s (42,26,1,1) 
     218     
    155219         !-------------------------------------! 
    156220         ! --- ice dynamics and advection  --- ! 
     
    161225         IF( ln_icedyn .AND. .NOT.lk_c1d )   & 
    162226            &                           CALL ice_dyn( kt )            ! -- Ice dynamics 
     227 
     228         write(numout,*)'icestp 2: e_s = ',e_s (42,26,1,1) 
    163229         ! 
    164230         !                          !==  lateral boundary conditions  ==! 
    165231         IF( ln_icethd .AND. ln_bdy )   CALL bdy_ice( kt )            ! -- bdy ice thermo 
     232 
     233         write(numout,*)'icestp 3: e_s = ',e_s (42,26,1,1) 
    166234         ! 
    167235         !                          !==  previous lead fraction and ice volume for flux calculations 
    168236                                        CALL ice_var_glo2eqv          ! h_i and h_s for ice albedo calculation 
     237 
     238         write(numout,*)'icestp 4: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
     239 
    169240                                        CALL ice_var_agg(1)           ! at_i for coupling  
     241 
     242         write(numout,*)'icestp 5: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
     243 
    170244                                        CALL store_fields             ! Store now ice values 
     245 
     246         write(numout,*)'icestp 6: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    171247         ! 
    172248         !------------------------------------------------------! 
     
    184260         !------------------------------------------------------! 
    185261                                        CALL ice_sbc_flx( kt, ksbc ) 
     262         write(numout,*)'icestp 7: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    186263         !----------------------------! 
    187264         ! --- ice thermodynamics --- ! 
    188265         !----------------------------! 
    189          IF( ln_icethd )                CALL ice_thd( kt )            ! -- Ice thermodynamics       
     266         IF( ln_icethd )                CALL ice_thd( kt )            ! -- Ice thermodynamics    
     267         write(numout,*)'icestp 8: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1)    
    190268         ! 
    191269                                        CALL ice_cor( kt , 2 )        ! -- Corrections 
     270         write(numout,*)'icestp 9: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    192271         ! 
    193272                                        CALL ice_var_glo2eqv          ! necessary calls (at least for coupling) 
     273         write(numout,*)'icestp 10: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    194274                                        CALL ice_var_agg( 2 )         ! necessary calls (at least for coupling) 
     275         write(numout,*)'icestp 11: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    195276         ! 
    196277                                        CALL ice_update_flx( kt )     ! -- Update ocean surface mass, heat and salt fluxes 
     278         write(numout,*)'icestp 12: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    197279         ! 
    198280         IF( ln_icediahsb )             CALL ice_dia( kt )            ! -- Diagnostics outputs  
     
    203285         ! 
    204286         IF( ln_icectl )                CALL ice_ctl( kt )            ! -- alerts in case of model crash 
     287         write(numout,*)'icestp 13: t_s, e_s = ',t_s(ji,jj,jk,jl) - rt0, ' ', e_s (42,26,1,1) 
    205288         ! 
    206289      ENDIF   ! End sea-ice time step only 
Note: See TracChangeset for help on using the changeset viewer.