Ignore:
Timestamp:
Oct 10, 2023, 11:41:27 AM (15 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.COMMON/libf/phy_common/geometry_mod.F90

    r1682 r3078  
    2727!$OMP THREADPRIVATE(dy)
    2828
    29   REAL,SAVE,ALLOCATABLE :: cell_area(:)      ! area of the cell
     29  REAL,SAVE,ALLOCATABLE :: cell_area(:) ! area of the cell (m2)
    3030!$OMP THREADPRIVATE(cell_area)
     31
     32  REAL,SAVE,ALLOCATABLE :: cell_area_for_lonlat_outputs(:)
     33                           ! for lon-lat outputs only: area of the cell
     34                           ! but with polar values as in dyn grid
     35                           ! (with replicated polar grid point)
     36!$OMP THREADPRIVATE(cell_area_for_lonlat_outputs)
    3137
    3238  INTEGER,SAVE,ALLOCATABLE :: ind_cell_glo(:)      ! global index of a local cell
     
    7682
    7783
     84  SUBROUTINE init_geometry_cell_area_for_outputs(klon, &
     85                                                 cell_area_for_lonlat_outputs_)
     86  IMPLICIT NONE
     87  INTEGER,INTENT(IN) :: klon ! number of columns for this MPI/OpenMP domain
     88  REAL,INTENT(IN) :: cell_area_for_lonlat_outputs_(klon) ! tweaked lon-lat mesh
     89                     ! cell areas where polar values are as on dyn lon-lat grid
     90                     ! for outputs
     91 
     92  ALLOCATE(cell_area_for_lonlat_outputs(klon))
     93  cell_area_for_lonlat_outputs(1:klon)=cell_area_for_lonlat_outputs_(1:klon)
     94 
     95  END SUBROUTINE init_geometry_cell_area_for_outputs
     96
    7897END MODULE geometry_mod
    7998
Note: See TracChangeset for help on using the changeset viewer.