Ignore:
Timestamp:
Apr 1, 2026, 3:17:47 PM (6 weeks ago)
Author:
jmauxion
Message:

Mars PCM:

  • Fix improvedclouds_mod by adding a missing "else" condition on zdq.
  • Add the possibility to output watercaptag in physiq_mod.
  • Fix write_output to handle logical arrays with an unstructured grid.
  • Update some of the utils (localtime/zrecast) to handle phisfi.

JM

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/improvedclouds_mod.F90

    r4044 r4161  
    443443        IF (spenttime.ne.0) then
    444444          zdq=(dMicetot/spenttime)!*(ptimestep-spenttime)
     445        ELSE
     446          ! Initialization for spenttime=0
     447          zdq=zpotcond(ig,l)*((ptimestep-spenttime)/ptimestep)
    445448        ENDIF
    446449        zdq=abs(zdq)
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r4151 r4161  
    33373337         call write_output("phisfi","Surface geopotential",
    33383338     &                    "m2s-2",phisfi(:))
     3339         call write_output("watercaptag","Watercap tag"
     3340     &         ,"Boolean",watercaptag(:))
    33393341         if (grid_type == regular_lonlat) then
    33403342           call write_output("area","Mesh area","m2",
  • trunk/LMDZ.MARS/libf/phymars/write_output_mod.F90

    r4058 r4161  
    285285logical, dimension(:), intent(in) :: field
    286286! Local argument used to convert logical to real
    287 real, dimension(ngrid) :: field_real
    288 logical :: is_active ! For XIOS, should this field be sent or not
    289 
     287real, allocatable, dimension(:) :: field_real
     288logical :: is_active ! For XIOS, should this field be sent or not
     289
     290allocate(field_real(size(field,1)))
    290291field_real = 0.
    291292where (field) field_real = 1.
Note: See TracChangeset for help on using the changeset viewer.