Changeset 4066 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Feb 12, 2026, 12:17:32 PM (12 days ago)
Author:
jmauxion
Message:

Mars PCM:
Raise an error if the deprecated flag 'albedo_h2o_ice' is used.
JM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r4063 r4066  
    8787      character(len=20),parameter :: modname="conf_phys"
    8888     
    89       real :: ecritphy ! to check that this obsolete flag is no longer used...
     89      real :: old_flag ! to check that obsolete flags are no longer used (real only)...
    9090      real :: albedo_perennialco2_north, albedo_perennialco2_south
    9191 
     
    9696      ! read in some parameters from "run.def" for physics,
    9797      ! or shared between dynamics and physics.
    98       ecritphy=-666 ! dummy default value
    99       call getin_p("ecritphy",ecritphy) ! frequency of outputs in physics,
     98      old_flag=-666 ! dummy default value
     99      call getin_p("ecritphy",old_flag) ! frequency of outputs in physics,
    100100                                      ! in dynamical steps
    101       if (ecritphy/=-666) then
     101      if (old_flag/=-666) then
    102102        call abort_physic(modname,
    103103     &     "Error: parameter ecritphy is obsolete! Remove it! "//
     
    957957! Water ice albedo
    958958         write(*,*) "water cap albedo ?"
     959
     960         ! Check obsolete flag for watercap albedo
     961         call getin_p("albedo_h2o_ice",old_flag) ! old watercap albedo flag
     962         if (old_flag/=-666) then
     963          call abort_physic(modname,
     964     &     "Error: parameter albedo_h2o_ice is obsolete! Remove it! "//
     965     &     "And use albedo_h2o_cap instead",1)
     966         endif
     967
    959968         albedo_h2o_cap=0.35
    960969         call getin_p("albedo_h2o_cap",albedo_h2o_cap)
Note: See TracChangeset for help on using the changeset viewer.