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 15692 for NEMO/branches/UKMO/NEMO_4.0.4_EAP_rheology_fix/src/ICE/icedyn_rhg_eap.F90 – NEMO

Ignore:
Timestamp:
2022-02-03T16:32:27+01:00 (2 years ago)
Author:
edblockley
Message:

Updating L&D rheology diagnostics to include masking and if test protection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_EAP_rheology_fix/src/ICE/icedyn_rhg_eap.F90

    r15682 r15692  
    905905               ! Stress invariants (sigma_I, sigma_II, Coon 1974, Feltham 2008) 
    906906               zsig_I (ji,jj)   =   zsig1 * 0.5_wp                                           ! 1st stress invariant, aka average normal stress, aka negative pressure 
    907                zsig_II(ji,jj)   =   SQRT ( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )       ! 2nd  ''       '', aka maximum shear stress 
     907               zsig_II(ji,jj)   =   SQRT( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )        ! 2nd  ''       '', aka maximum shear stress 
    908908                
    909909            END DO 
     
    939939               ! Stress invariants (sigma_I, sigma_II, Coon 1974, Feltham 2008), T-point 
    940940               zsig_I(ji,jj)    =   zsig1 * 0.5_wp                                           ! 1st stress invariant, aka average normal stress, aka negative pressure 
    941                zsig_II(ji,jj)   =   SQRT ( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )       ! 2nd  ''       '', aka maximum shear stress 
     941               zsig_II(ji,jj)   =   SQRT( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )        ! 2nd  ''       '', aka maximum shear stress 
    942942       
    943943               ! Normalized  principal stresses (used to display the ellipse) 
     
    948948         END DO                
    949949         ! 
    950          CALL iom_put( 'sig1_pnorm' , zsig1_p )  
    951          CALL iom_put( 'sig2_pnorm' , zsig2_p )  
     950         IF( iom_use('sig1_pnorm') )  CALL iom_put( 'sig1_pnorm' , zsig1_p(:,:) * zmsk00(:,:) )  
     951         IF( iom_use('sig2_pnorm') )  CALL iom_put( 'sig2_pnorm' , zsig2_p(:,:) * zmsk00(:,:) ) 
    952952       
    953953         DEALLOCATE( zsig1_p , zsig2_p , zsig_I, zsig_II ) 
Note: See TracChangeset for help on using the changeset viewer.