Ignore:
Timestamp:
Feb 17, 2026, 2:45:53 PM (11 days ago)
Author:
jbclement
Message:

PEM:

  • Correct management of H2O ice tendency in 1D when there is not enough ice anymore.
  • Clean initialization of allocatable module arrays (especially needed when no slope)
  • One more renaming for consistency + few small updates thoughout the code.

JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/atmosphere.F90

    r4065 r4074  
    6969if (.not. allocated(u_PCM)) allocate(u_PCM(ngrid,nlayer))
    7070if (.not. allocated(v_PCM)) allocate(v_PCM(ngrid,nlayer))
     71ap(:) = 0._dp
     72bp(:) = 0._dp
     73ps_PCM(:) = 0._dp
     74teta_PCM(:,:) = 0._dp
     75u_PCM(:,:) = 0._dp
     76v_PCM(:,:) = 0._dp
    7177
    7278END SUBROUTINE ini_atmosphere
     
    662668! The pressure deviation is rescaled to avoid disproportionate oscillations in case of huge change of average pressure during the PEM run
    663669ps4PCM(:) = ps_avg(:) + ps_dev(:)*ps_avg_glob/ps_avg_glob_ini
    664 pa4PCM = ps_avg_glob_ini/30.  ! For now the altitude grid is not changed
    665 preff4PCM = ps_avg_glob_ini   ! For now the altitude grid is not changed
    666 
     670pa4PCM = ps_avg_glob_ini/30. ! For now the altitude grid is not changed
     671preff4PCM = ps_avg_glob_ini  ! For now the altitude grid is not changed
     672
     673! Correction on teta due to surface pressure changes
    667674call print_msg('> Building potential temperature for the PCM')
    668675do l = 1,nlayer
    669     ! Correction on teta due to surface pressure changes
    670676    teta4PCM(:,l) = teta_PCM(:,l)*ps4PCM(:)**rcp
    671677end do
    672678
     679! Compute atmospheric pressure
    673680call print_msg('> Building air mass for the PCM')
    674 ! Compute atmospheric pressure
    675681do l = 1,nlayer + 1
    676682    p(:,l) = ap(l) + bp(l)*ps4PCM(:)
Note: See TracChangeset for help on using the changeset viewer.