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 4672 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limthd_lac.F90 – NEMO

Ignore:
Timestamp:
2014-06-17T17:06:59+02:00 (10 years ago)
Author:
clem
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limthd_lac.F90

    r4659 r4672  
    329329         ! Salinity of new ice  
    330330         !---------------------- 
    331  
    332331         SELECT CASE ( num_sal ) 
    333332         CASE ( 1 )                    ! Sice = constant  
     
    343342         END SELECT 
    344343 
    345  
    346344         !------------------------- 
    347345         ! Heat content of new ice 
     
    354352               &                       - rcp  *         ( ztmelts - rtt )  ) 
    355353         END DO ! ji 
     354 
    356355         !---------------- 
    357356         ! Age of new ice 
     
    395394         END DO 
    396395 
    397  
    398396         !----------------- 
    399397         ! Area of new ice 
     
    407405         !------------------------------------------------------------------------------! 
    408406 
    409          !------------------------------------------- 
    410          ! Compute excessive new ice area and volume 
    411          !------------------------------------------- 
     407         !------------------------ 
     408         ! 6.1) lateral ice growth 
     409         !------------------------ 
    412410         ! If lateral ice growth gives an ice concentration gt 1, then 
    413411         ! we keep the excessive volume in memory and attribute it later to bottom accretion 
     
    422420               zdv_res(ji) = 0._wp 
    423421            ENDIF 
    424          END DO ! ji 
    425  
    426          !------------------------------------------------ 
    427          ! Laterally redistribute new ice volume and area 
    428          !------------------------------------------------ 
     422         END DO 
     423 
     424         ! find which category to fill 
    429425         zat_i_1d(:) = 0._wp 
    430426         DO jl = 1, jpl 
     
    433429                  za_i_1d (ji,jl) = za_i_1d (ji,jl) + za_newice(ji) 
    434430                  zv_i_1d (ji,jl) = zv_i_1d (ji,jl) + zv_newice(ji) 
    435                   jcat  (ji)    = jl 
     431                  jcat    (ji)    = jl 
    436432               ENDIF 
    437433               zat_i_1d(ji) = zat_i_1d(ji) + za_i_1d  (ji,jl) 
     
    439435         END DO 
    440436 
    441          !---------------------------------- 
    442          ! Heat content - lateral accretion 
    443          !---------------------------------- 
    444          DO ji = 1, nbpac 
    445             jl = jcat(ji)                                                  ! categroy in which new ice is put 
     437         ! Heat content 
     438         DO ji = 1, nbpac 
     439            jl = jcat(ji)                                                    ! categroy in which new ice is put 
    446440            zswinew  (ji) = MAX( 0._wp , SIGN( 1._wp , - za_old(ji,jl) ) )   ! 0 if old ice 
    447441         END DO 
     
    457451         END DO 
    458452 
    459          !----------------------------------------------- 
    460          ! Add excessive volume of new ice at the bottom 
    461          !----------------------------------------------- 
     453         !------------------------------------------------ 
     454         ! 6.2) bottom ice growth + ice enthalpy remapping 
     455         !------------------------------------------------ 
    462456         DO jl = 1, jpl 
     457 
     458            ! for remapping 
    463459            h_i_old (1:nbpac,0:nlay_i+1) = 0._wp 
    464460            qh_i_old(1:nbpac,0:nlay_i+1) = 0._wp 
    465  
    466461            DO jk = 1, nlay_i 
    467462               DO ji = 1, nbpac 
     
    471466            END DO 
    472467 
     468            ! new volumes including lateral/bottom accretion + residual 
    473469            DO ji = 1, nbpac 
    474470               zinda          = MAX( 0._wp, SIGN( 1._wp , zat_i_1d(ji) - epsi20 ) ) 
    475471               zv_newfra      = zinda * ( zdv_res(ji) + zv_frazb(ji) ) * za_i_1d(ji,jl) / MAX( zat_i_1d(ji) , epsi20 ) 
    476472               za_i_1d(ji,jl) = zinda * za_i_1d(ji,jl)                
    477  
     473               zv_i_1d(ji,jl) = zv_i_1d(ji,jl) + zv_newfra 
     474 
     475               ! for remapping 
    478476               h_i_old (ji,nlay_i+1) = zv_newfra 
    479477               qh_i_old(ji,nlay_i+1) = ze_newice(ji) * zv_newfra 
    480  
    481                zv_i_1d(ji,jl) = zv_i_1d(ji,jl) + zv_newfra 
    482478            ENDDO 
    483479 
    484480            ! --- Ice enthalpy remapping --- ! 
    485             CALL lim_thd_ent( 1, nbpac, jl, ze_i_1d(1:nbpac,:,jl) )  
     481            IF( zv_newfra > 0._wp ) THEN 
     482               CALL lim_thd_ent( 1, nbpac, ze_i_1d(1:nbpac,:,jl) )  
     483            ENDIF 
    486484 
    487485         ENDDO 
     
    500498         ! Update salinity 
    501499         !----------------- 
    502          !clem IF(  num_sal == 2  ) THEN 
    503             DO jl = 1, jpl 
    504                DO ji = 1, nbpac 
    505                   zdv   = zv_i_1d(ji,jl) - zv_old(ji,jl) 
    506                   zsmv_i_1d(ji,jl) = zsmv_i_1d(ji,jl) + zdv * zs_newice(ji) 
    507                END DO 
    508             END DO    
    509          !clem ENDIF 
     500         DO jl = 1, jpl 
     501            DO ji = 1, nbpac 
     502               zdv   = zv_i_1d(ji,jl) - zv_old(ji,jl) 
     503               zsmv_i_1d(ji,jl) = zsmv_i_1d(ji,jl) + zdv * zs_newice(ji) 
     504            END DO 
     505         END DO 
    510506 
    511507         !------------------------------------------------------------------------------! 
    512          ! 8) Change 2D vectors to 1D vectors  
     508         ! 7) Change 2D vectors to 1D vectors  
    513509         !------------------------------------------------------------------------------! 
    514510         DO jl = 1, jpl 
     
    531527 
    532528      !------------------------------------------------------------------------------! 
    533       ! 9) Change units for e_i 
     529      ! 8) Change units for e_i 
    534530      !------------------------------------------------------------------------------!     
    535531      DO jl = 1, jpl 
Note: See TracChangeset for help on using the changeset viewer.