Changeset 3234


Ignore:
Timestamp:
Feb 23, 2024, 3:30:17 PM (9 months ago)
Author:
emillour
Message:

Mars PCM:
Minor fix in topmons_setup: handle case when mount is "resolved" for high
resolution runs.
EM

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3231 r3234  
    45234523Fixing a bug in 1D: atm_wat_profile should evolve freely when considering
    45244524relaxation, and should not be set to qsat in cold conditions.
     4525
     4526== 23/02/2024 == EM
     4527Minor fix in topmons_setup: handle case when mount is "resolved" for high
     4528resolution runs.
  • trunk/LMDZ.MARS/libf/phymars/topmons_mod.F90

    r2953 r3234  
    10561056            alpha_hmons(ig)= 0.5*(hmons(ig)-hmin)/(hmax-hmin)
    10571057            ! Sanity check
    1058             if (alpha_hmons(ig).le.0) then
     1058            if (alpha_hmons(ig).lt.0) then
     1059             write(*,*) "topmons_setup: ig=",ig," alpha_hmons(ig)=",alpha_hmons(ig)
     1060             write(*,*) "topmons_setup: hmin=",hmin," hmax=",hmax
    10591061              call abort_physic("topmons_setup","ERROR: alpha_hmons cannot be <0 "//&
    10601062                                "if the mesh contains a mountain. Please check your "//&
    10611063                                "formula or your start files.",1)
     1064            endif
     1065            if (alpha_hmons(ig).eq.0) then
     1066              write(*,*) "topmons_setup: warning! For ig=",ig, &
     1067                         " alpha_mons(ig)=0; ", &
     1068                         " i.e. mount resolved at this resolution"
     1069              contains_mons(ig)=.false.
    10621070            endif
    10631071          else
     
    10801088            hsummit(:)=14000.
    10811089      ENDIF ! (ngrid.gt.1)
    1082      
     1090
    10831091      end subroutine topmons_setup
    10841092!********************************************************************************   
Note: See TracChangeset for help on using the changeset viewer.