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_evp.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_evp.F90

    r15682 r15692  
    839839               ! Stress invariants (sigma_I, sigma_II, Coon 1974, Feltham 2008) 
    840840               zsig_I (ji,jj)   =   zsig1 * 0.5_wp                                           ! 1st stress invariant, aka average normal stress, aka negative pressure 
    841                zsig_II(ji,jj)   =   SQRT ( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )       ! 2nd  ''       '', aka maximum shear stress 
     841               zsig_II(ji,jj)   =   SQRT( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )        ! 2nd  ''       '', aka maximum shear stress 
    842842                
    843843            END DO 
     
    873873               ! Stress invariants (sigma_I, sigma_II, Coon 1974, Feltham 2008), T-point 
    874874               zsig_I(ji,jj)    =   zsig1 * 0.5_wp                                           ! 1st stress invariant, aka average normal stress, aka negative pressure 
    875                zsig_II(ji,jj)   =   SQRT ( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )       ! 2nd  ''       '', aka maximum shear stress 
     875               zsig_II(ji,jj)   =   SQRT( zsig2 * zsig2 * 0.25_wp + zsig12 * zsig12 )        ! 2nd  ''       '', aka maximum shear stress 
    876876       
    877877               ! Normalized  principal stresses (used to display the ellipse) 
     
    882882         END DO                
    883883         ! 
    884          CALL iom_put( 'sig1_pnorm' , zsig1_p )  
    885          CALL iom_put( 'sig2_pnorm' , zsig2_p )  
     884         IF( iom_use('sig1_pnorm') )  CALL iom_put( 'sig1_pnorm' , zsig1_p(:,:) * zmsk00(:,:) )  
     885         IF( iom_use('sig2_pnorm') )  CALL iom_put( 'sig2_pnorm' , zsig2_p(:,:) * zmsk00(:,:) )  
    886886       
    887887         DEALLOCATE( zsig1_p , zsig2_p , zsig_I, zsig_II ) 
Note: See TracChangeset for help on using the changeset viewer.