Ignore:
Timestamp:
Jun 25, 2025, 11:10:57 AM (4 days ago)
Author:
afalco
Message:

Generic: enable writing cell_area with XIOSin physiq_mod, only for 3D runs.
Pluto: only write variable in 3D runs (do not calculate cell_area for 1D runs).
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r3773 r3816  
    3131      use comsaison_h, only: mu0, fract, dist_star, declin, right_ascen
    3232      use comsoil_h, only: nsoilmx, layer, mlayer, inertiedat
    33       use geometry_mod, only: latitude, longitude, cell_area
     33      use geometry_mod, only: latitude, longitude, cell_area, &
     34                          cell_area_for_lonlat_outputs
    3435      USE comgeomfi_h, only: totarea, totarea_planet
    3536      USE tracer_h, only: noms, mmol, radius, rho_q, qext, &
     
    5556      use planetwide_mod, only: planetwide_minval,planetwide_maxval,planetwide_sumval
    5657      use mod_phys_lmdz_para, only : is_master
     58      USE mod_grid_phy_lmdz, ONLY: regular_lonlat, grid_type, unstructured
    5759      use planete_mod, only: apoastr, periastr, year_day, peri_day, &
    5860                            obliquit, nres, z0
     
    25462548      call write_output("p","Pressure","Pa",pplay)
    25472549      call write_output("omega","omega","Pa/s",omega)
    2548 
     2550      call write_output('phisfi','Surface Geopotential','m2s-2',phisfi)
     2551      if (ngrid.ne.1) then
     2552         if (grid_type == regular_lonlat) then
     2553            call write_output("area","Mesh area","m2", &
     2554                            cell_area_for_lonlat_outputs)
     2555         else ! unstructured grid (e.g. dynamico)
     2556            call write_output("area","Mesh area","m2",cell_area)
     2557         endif
     2558      endif
     2559     
    25492560!     Subsurface temperatures
    25502561!        call writediagsoil(ngrid,"tsurf","Surface temperature","K",2,tsurf)
Note: See TracChangeset for help on using the changeset viewer.