Changeset 1418 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Jun 6, 2014 1:05:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r1410 r1418 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Bugfix: Change if-condition for stretched grid in the ocean, with the old 23 ! condition and a negative value for dz_stretch_level the condition 24 ! was always true for the whole model domain 23 25 ! 24 26 ! Former revisions: … … 272 274 dz_stretched = dz 273 275 DO k = nzt-1, 0, -1 274 IF ( dz_stretch_level <= ABS( zu(k+1) ) .AND. & 275 dz_stretched < dz_max ) THEN 276 ! 277 !-- The default value of dz_stretch_level is positive, thus the first 278 !-- condition is always true. Hence, the second condition is necessary. 279 IF ( dz_stretch_level >= zu(k+1) .AND. dz_stretch_level <= 0.0 & 280 .AND. dz_stretched < dz_max ) THEN 276 281 dz_stretched = dz_stretched * dz_stretch_factor 277 282 dz_stretched = MIN( dz_stretched, dz_max )
Note: See TracChangeset
for help on using the changeset viewer.