Changeset 221 for palm/trunk/SOURCE/init_cloud_physics.f90
- Timestamp:
- Jan 12, 2009 3:32:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_cloud_physics.f90
r98 r221 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! 6 ! Bugfix: abort in case that absolute temperature is below zero 7 7 ! 8 8 ! Former revisions: … … 62 62 t_surface = pt_surface * ( surface_pressure / 1000.0 )**0.286 63 63 DO k = nzb, nzt+1 64 ! 65 !-- Check temperature in case of too large domain height 66 IF ( ( t_surface - g/cp * zu(k) ) < 0.0 ) THEN 67 WRITE( message_string, * ) 'absolute temperature < 0.0 at zu(', k, & 68 ') = ', zu(k) 69 CALL handle_palm_message( 'init_cloud_physics', 'PA0142', 1, 2, 0, 6, & 70 0 ) 71 ENDIF 64 72 hyp(k) = surface_pressure * 100.0 * & 65 73 ( (t_surface - g/cp * zu(k)) / t_surface )**(1.0/0.286)
Note: See TracChangeset
for help on using the changeset viewer.