Changeset 3904


Ignore:
Timestamp:
Aug 26, 2025, 2:17:21 PM (5 months ago)
Author:
jbclement
Message:

Mars PCM:
Some adjustments of sanity checks for the compatibility of options 'doubleq' and 'active'.
JBC

Location:
trunk/LMDZ.MARS
Files:
4 edited

Legend:

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

    r3903 r3904  
    49584958== 22/08/2025 == JBC
    49594959Case 'icelocationmode = 5' (default) is corrected compared to r2884. Now it reads 'watercaptag' from "startfi.nc" in any circumstances, unless it is missing, in which case 'icelocationmode' is set to 4.
     4960
     4961== 26/08/2025 == JBC
     4962Some adjustments of sanity checks for the compatibility of options 'doubleq' and 'active'.
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r3847 r3904  
    452452           print*,'if active is used, then dustbin should > 0'
    453453           call abort_physic(modname,
    454      &          "active option requires dustbin < 0",1)
     454     &          "active option requires dustbin > 0",1)
    455455         endif
    456456! doubleq
  • trunk/LMDZ.MARS/libf/phymars/initracer.F90

    r3855 r3904  
    593593
    594594if (doubleq) then
     595    ! verify that we indeed have dust_mass and dust_number tracers
     596    if (igcm_dust_mass == 0) then
     597           write(*,*) "initracer: error!"
     598            write(*,*) "  Cannot use doubleq option without a dust_mass tracer!"
     599           call abort_physic("initracer","doubleq issue",1)
     600    endif
     601    if (igcm_dust_number == 0) then
     602        write(*,*) "initracer: error!"
     603        write(*,*) "  Cannot use doubleq option without a dust_number tracer!"
     604        call abort_physic("initracer","doubleq issue",1)
     605    endif
     606
    595607    ! "doubleq" technique
    596608    ! -------------------
     
    785797! some extra (possibly redundant) sanity checks for tracers:
    786798! ---------------------------------------------------------
    787 if (doubleq) then
    788     ! verify that we indeed have dust_mass and dust_number tracers
    789     if (igcm_dust_mass == 0) then
    790            write(*,*) "initracer: error!"
    791             write(*,*) "  Cannot use doubleq option without a dust_mass tracer!"
    792            call abort_physic("initracer","doubleq issue",1)
    793     endif
    794     if (igcm_dust_number == 0) then
    795         write(*,*) "initracer: error!"
    796         write(*,*) "  Cannot use doubleq option without a dust_number tracer!"
    797         call abort_physic("initracer","doubleq issue",1)
    798         endif
    799 endif
    800 
    801799if ((.not.doubleq).and.(dustbin>0)) then
    802800    ! verify that we indeed have 'dustbin' dust tracers
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r3902 r3904  
    7878     &                          iaer_stormdust_doubleq, iaer_h2o_ice,
    7979     &                          flux_1AU
    80       use dust_param_mod, only: doubleq, lifting, callddevil,
     80      use dust_param_mod, only: doubleq, lifting, callddevil, active,
    8181     &                          tauscaling, odpref, dustbin,
    8282     &                          dustscaling_mode, dust_rad_adjust,
     
    27052705        fluxsurf_dir_dn_sw(ig) = 0.
    27062706       else
     2707          if (doubleq) then
    27072708            if (activice) then
    27082709             ! both water and dust contribute
     
    27102711     &                    exp(-(tau(ig,iaer_dust_doubleq)+
    27112712     &                          tau(ig,iaer_h2o_ice))/mu0(ig))
    2712             else
     2713            else if (active) then
    27132714             ! only dust contributes
    27142715            fluxsurf_dir_dn_sw(ig) = flux_1AU/dist_sol/dist_sol*mu0(ig)*
    27152716     &                    exp(-(tau(ig,iaer_dust_doubleq))/mu0(ig))
    27162717            endif ! of if (water)
    2717            endif ! of if(mu0(ig).le.0.01)
     2718          endif ! of if (doubleq)
     2719         endif ! of if(mu0(ig).le.0.01)
    27182720         enddo
    27192721
Note: See TracChangeset for help on using the changeset viewer.