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 8500 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icerhg_evp.F90 – NEMO

Ignore:
Timestamp:
2017-09-06T12:01:34+02:00 (7 years ago)
Author:
clem
Message:

changes in style - part3 - move output into proper files and correct a bug in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icerhg_evp.F90

    r8498 r8500  
    153153      REAL(wp), PARAMETER          ::   zmmin  = 1._wp                  ! ice mass (kg/m2) below which ice velocity equals ocean velocity 
    154154      !! --- diags 
    155       REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   zswi, zsig1, zsig2, zsig3 
     155      REAL(wp), DIMENSION(jpi,jpj) ::   zswi 
     156      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   zsig1, zsig2, zsig3 
    156157      !! --- SIMIP diags 
    157158      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   zdiag_sig1      ! Average normal stress in sea ice    
     
    692693      ! 5) diagnostics 
    693694      !------------------------------------------------------------------------------! 
    694       ! --- ellipse --- ! 
     695      DO jj = 1, jpj 
     696         DO ji = 1, jpi 
     697            zswi(ji,jj) = MAX( 0._wp , SIGN( 1._wp , at_i(ji,jj) - epsi06 ) ) ! 1 if ice, 0 if no ice 
     698         END DO 
     699      END DO 
     700 
     701      ! --- divergence, shear and strength --- ! 
     702      IF( iom_use('idive')  )   CALL iom_put( "idive"  , divu_i(:,:)   * zswi(:,:) )   ! divergence 
     703      IF( iom_use('ishear') )   CALL iom_put( "ishear" , shear_i(:,:)  * zswi(:,:) )   ! shear 
     704      IF( iom_use('icestr') )   CALL iom_put( "icestr" , strength(:,:) * zswi(:,:) )   ! Ice strength 
     705 
     706      ! --- charge ellipse --- ! 
    695707      IF( iom_use('isig1') .OR. iom_use('isig2') .OR. iom_use('isig3') ) THEN 
    696708         ! 
    697          ALLOCATE( zswi(jpi,jpj) , zsig1(jpi,jpj) , zsig2(jpi,jpj) , zsig3(jpi,jpj) ) 
    698          ! 
    699          DO jj = 1, jpj 
    700             DO ji = 1, jpi 
    701                zswi(ji,jj) = MAX( 0._wp , SIGN( 1._wp , at_i(ji,jj) - epsi06 ) ) ! 1 if ice, 0 if no ice 
    702             END DO 
    703          END DO 
    704           
     709         ALLOCATE( zsig1(jpi,jpj) , zsig2(jpi,jpj) , zsig3(jpi,jpj) ) 
     710         !          
    705711         DO jj = 2, jpjm1 
    706712            DO ji = 2, jpim1 
     
    728734         IF( iom_use('isig3') )   CALL iom_put( "isig3" , zsig3 ) 
    729735         ! 
    730          DEALLOCATE( zswi , zsig1 , zsig2 , zsig3 ) 
     736         DEALLOCATE( zsig1 , zsig2 , zsig3 ) 
    731737      ENDIF 
    732738       
Note: See TracChangeset for help on using the changeset viewer.