Changeset 3816


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

Location:
trunk
Files:
3 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)
  • trunk/LMDZ.PLUTO/libf/phypluto/dyn1d/rcm1d.F

    r3811 r3816  
    1414      use comsoil_h, only: nsoilmx, layer, mlayer, inertiedat, volcapa
    1515      use phyredem, only: physdem0,physdem1
    16       use geometry_mod, only: init_geometry,
    17      &                        init_geometry_cell_area_for_outputs
     16      use geometry_mod, only: init_geometry
    1817      use planete_mod, only: apoastr,periastr,year_day,peri_day,
    1918     &         obliquit,z0,lmixmin,emin_turb,coefvis,coefir,
     
    557556     &                   (/0.,0.,0.,0./),(/0.,0.,0.,0./),
    558557     &                   cell_area,[1])
    559       call init_geometry_cell_area_for_outputs(1,cell_area)
    560558! Ehouarn: init_vertial_layers called later (because disvert not called yet)
    561559!      call init_vertical_layers(nlayer,preff,scaleheight,
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3813 r3816  
    21682168      call write_output("emis","Emissivity","",emis)
    21692169      call write_output('phisfi','Surface Geopotential','m2s-2',phisfi)
    2170       if (grid_type == regular_lonlat) then
    2171           call write_output("area","Mesh area","m2", &
    2172                            cell_area_for_lonlat_outputs)
    2173         else ! unstructured grid (e.g. dynamico)
    2174           call write_output("area","Mesh area","m2",cell_area)
     2170      if (ngrid.ne.1) then
     2171         if (grid_type == regular_lonlat) then
     2172            call write_output("area","Mesh area","m2", &
     2173                              cell_area_for_lonlat_outputs)
     2174         else ! unstructured grid (e.g. dynamico)
     2175            call write_output("area","Mesh area","m2",cell_area)
     2176         endif
    21752177      endif
    21762178
Note: See TracChangeset for help on using the changeset viewer.