Changeset 3241 for trunk/LMDZ.COMMON


Ignore:
Timestamp:
Feb 27, 2024, 11:40:35 PM (9 months ago)
Author:
afalco
Message:

Pluto PCM:
outputs for CH4, CO, etc
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/phy_common/geometry_mod.F90

    r3078 r3241  
    3636!$OMP THREADPRIVATE(cell_area_for_lonlat_outputs)
    3737
     38  REAL,SAVE,ALLOCATABLE :: real_area(:) ! real area of the cell (m2)
     39                                        ! multiplied by klon at poles
     40  !$OMP THREADPRIVATE(real_area)
     41
    3842  INTEGER,SAVE,ALLOCATABLE :: ind_cell_glo(:)      ! global index of a local cell
    3943!$OMP THREADPRIVATE(ind_cell_glo)
     
    4751  USE nrtype, ONLY : PI
    4852  IMPLICIT NONE
     53  include "dimensions.h"
    4954    INTEGER,INTENT(IN) :: klon ! number of columns for this MPI/OpenMP domain
    5055    REAL,INTENT(IN) :: longitude_(klon)
     
    6469    ALLOCATE(boundslat(klon,nvertex))
    6570    ALLOCATE(cell_area(klon))
     71    ALLOCATE(real_area(klon))
    6672    IF (PRESENT(ind_cell_glo_)) ALLOCATE(ind_cell_glo(klon))
    6773    IF (PRESENT(dx_)) ALLOCATE(dx(klon))
     
    7581    boundslat(:,:) = boundslat_(:,:)
    7682    cell_area(:) = cell_area_(:)
     83
     84    real_area(2:klon-1)=cell_area(2:klon-1)
     85    real_area(1)=cell_area(1)*iim
     86    real_area(klon)=cell_area(klon)*iim
     87
    7788    IF (PRESENT(ind_cell_glo_)) ind_cell_glo(:) = ind_cell_glo_(:)
    7889    IF (PRESENT(dx_)) dx(:) = dx_(:)
Note: See TracChangeset for help on using the changeset viewer.