Ignore:
Timestamp:
Sep 29, 2020 12:47:35 PM (4 years ago)
Author:
eckhard
Message:

inifor: Fixed off-by-one indexing error for profile quantities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/inifor/src/inifor_transform.f90

    r4675 r4714  
    2626! -----------------
    2727! $Id$
     28! Fixed off-by-one indexing error for profile quantities
     29!
     30!
     31! 4675 2020-09-11 10:00:26Z eckhard
    2832! Improved code formatting
    2933!
     
    378382 SUBROUTINE interp_average_profile(source_array, profile_array, avg_grid)
    379383    TYPE(grid_definition), INTENT(IN)          ::  avg_grid
    380     REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  source_array
     384    REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  source_array(0:,0:,:)
    381385    REAL(wp), DIMENSION(:), INTENT(OUT)        ::  profile_array
    382386
     
    435439
    436440    TYPE(grid_definition), INTENT(IN)          ::  avg_grid
    437     REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  source_array
     441    REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  source_array(0:,0:,:)
    438442    REAL(wp), DIMENSION(:), INTENT(OUT)        ::  profile_array
    439443
     
    481485
    482486    TYPE(grid_definition), INTENT(IN)          ::  cosmo_grid, avg_grid
    483     REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  cosmo_pressure
     487    REAL(wp), DIMENSION(:,:,:), INTENT(IN)     ::  cosmo_pressure(0:,0:,:)
    484488    REAL(wp), DIMENSION(:), INTENT(OUT)        ::  profile_array
    485489
Note: See TracChangeset for help on using the changeset viewer.