Ignore:
Timestamp:
Oct 10, 2023, 11:41:27 AM (17 months ago)
Author:
emillour
Message:

Common physics/dynamics:
Add, for lon-lat outputs, a cell_area_for_lonlat_outputs()
field where polar mesh areas are adapted to match those
of the dynamics grid (where polar mesh points are replicated
along longitudes).

Mars PCM:
Enable outputing cell area with XIOS and make sure the polar grid point
is correctly handled (i.e. on lon-lat grid outputs polar mesh area must
be adjusted to account for the replicated polar meshes).

EM

File:
1 edited

Legend:

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

    r3042 r3078  
    5050     &                     mlayer,layer ! soil mid layer depths
    5151      use geometry_mod, only: longitude, latitude, cell_area,
    52      &                        longitude_deg
     52     &                        cell_area_for_lonlat_outputs,longitude_deg
    5353      use comgeomfi_h, only: sinlon, coslon, sinlat, coslat
    5454      use surfdat_h, only: phisfi, albedodat, zmea, zstd, zsig, zgam,
     
    110110      use wxios, only: wxios_context_init, xios_context_finalize
    111111#endif
    112       USE mod_grid_phy_lmdz, ONLY: grid_type, unstructured
     112      USE mod_grid_phy_lmdz, ONLY: grid_type, unstructured,
     113     &                             regular_lonlat
    113114      use ioipsl_getin_p_mod, only: getin_p
    114115      use comslope_mod, ONLY: nslope,def_slope,def_slope_mean,
     
    31723173         call write_output("phisfi","Surface geopotential",
    31733174     &                    "m2s-2",phisfi(:))
     3175         if (grid_type == regular_lonlat) then
     3176           call write_output("area","Mesh area","m2",
     3177     &                       cell_area_for_lonlat_outputs)
     3178         else ! unstructured grid (e.g. dynamico)
     3179           call write_output("area","Mesh area","m2",cell_area)
     3180         endif
    31743181         call write_output("tsurf","Surface temperature","K",
    31753182     &                  tsurf(:,iflat))
Note: See TracChangeset for help on using the changeset viewer.