Ignore:
Timestamp:
Jun 12, 2018 8:55:55 AM (3 years ago)
Author:
Giersch
Message:

Error messages related to the new vertical grid stretching revised, Bugfix in IF statement before error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/init_grid.f90

    r3065 r3066  
    2525! -----------------
    2626! $Id$
     27! Bugfix in IF statement before error message
     28!
     29! 3065 2018-06-12 07:03:02Z Giersch
    2730! New vertical stretching mechanism introduced
    2831!
     
    484487!-- Allocation of arrays for stretching
    485488    ALLOCATE( min_dz_stretch_level_end(number_stretch_level_start) )
    486    
     489
    487490!
    488491!-- Define the vertical grid levels
     
    497500       ENDDO
    498501
    499        IF ( ANY( min_dz_stretch_level_end > dz_stretch_level_end ) ) THEN
     502       IF ( ANY( min_dz_stretch_level_end(1:number_stretch_level_start) >      &
     503                 dz_stretch_level_end(1:number_stretch_level_start) ) ) THEN
    500504             message_string= 'Eeach dz_stretch_level_end has to be larger ' // &
    501505                             'than its corresponding value for &' //           &
     
    619623       ENDDO
    620624       
    621        IF ( ANY( min_dz_stretch_level_end < dz_stretch_level_end ) ) THEN
     625       IF ( ANY( min_dz_stretch_level_end (1:number_stretch_level_start) <     &
     626                 dz_stretch_level_end(1:number_stretch_level_start) ) ) THEN
    622627             message_string= 'Eeach dz_stretch_level_end has to be less ' //   &
    623628                             'than its corresponding value for &' //           &
Note: See TracChangeset for help on using the changeset viewer.