Changeset 3241 for trunk/LMDZ.COMMON
- Timestamp:
- Feb 27, 2024, 11:40:35 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/phy_common/geometry_mod.F90
r3078 r3241 36 36 !$OMP THREADPRIVATE(cell_area_for_lonlat_outputs) 37 37 38 REAL,SAVE,ALLOCATABLE :: real_area(:) ! real area of the cell (m2) 39 ! multiplied by klon at poles 40 !$OMP THREADPRIVATE(real_area) 41 38 42 INTEGER,SAVE,ALLOCATABLE :: ind_cell_glo(:) ! global index of a local cell 39 43 !$OMP THREADPRIVATE(ind_cell_glo) … … 47 51 USE nrtype, ONLY : PI 48 52 IMPLICIT NONE 53 include "dimensions.h" 49 54 INTEGER,INTENT(IN) :: klon ! number of columns for this MPI/OpenMP domain 50 55 REAL,INTENT(IN) :: longitude_(klon) … … 64 69 ALLOCATE(boundslat(klon,nvertex)) 65 70 ALLOCATE(cell_area(klon)) 71 ALLOCATE(real_area(klon)) 66 72 IF (PRESENT(ind_cell_glo_)) ALLOCATE(ind_cell_glo(klon)) 67 73 IF (PRESENT(dx_)) ALLOCATE(dx(klon)) … … 75 81 boundslat(:,:) = boundslat_(:,:) 76 82 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 77 88 IF (PRESENT(ind_cell_glo_)) ind_cell_glo(:) = ind_cell_glo_(:) 78 89 IF (PRESENT(dx_)) dx(:) = dx_(:)
Note: See TracChangeset
for help on using the changeset viewer.