Changeset 4340 for palm/trunk/SOURCE/check_parameters.f90
- Timestamp:
- Dec 16, 2019 8:17:03 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_parameters.f90
r4331 r4340 25 25 ! ----------------- 26 26 ! 4172 2019-08-20 11:55:33Z oliver.maas 27 ! Checks for closed channel flow implemented 28 ! 29 ! 11:55:33Z oliver.maas 27 30 ! Move 2-m potential temperature output to diagnostic_output_quantities 28 31 ! … … 498 501 WRITE( action, '(A)' ) 'cloud_droplets = .TRUE.' 499 502 ENDIF 500 IF ( .NOT. constant_flux_layer ) THEN 503 IF ( .NOT. constant_flux_layer .AND. topography /= 'closed_channel' ) & 504 THEN 501 505 WRITE( action, '(A)' ) 'constant_flux_layer = .FALSE.' 502 506 ENDIF 503 507 IF ( action /= ' ' ) THEN 504 message_string = ' a non-flat topography does not allow ' //&508 message_string = 'The specified topography does not allow ' // & 505 509 TRIM( action ) 506 510 CALL message( 'check_parameters', 'PA0014', 1, 2, 0, 6, 0 ) 507 511 ENDIF 508 512 ! 513 !-- Check illegal/untested parameter combinations for closed channel 514 If ( topography == 'closed_channel' ) THEN 515 symmetry_flag = 1 516 message_string = 'Bottom and top boundary are treated equal' 517 CALL message( 'check_parameters', 'PA0676', 0, 0, 0, 6, 0 ) 518 519 IF ( dz(1) /= dz(COUNT( dz /= -1.0_wp )) .OR. & 520 dz_stretch_level /= -9999999.9_wp) THEN 521 WRITE( message_string, * ) 'dz should be equal close to the ' // & 522 'boundaries due to symmetrical problem' 523 CALL message( 'check_parameters', 'PA0313', 1, 2, 0, 6, 0 ) 524 ENDIF 525 526 IF ( constant_flux_layer ) THEN 527 WRITE( message_string, * ) 'A constant flux layer is not '// & 528 'allowed if a closed channel '// & 529 'shall be used' 530 CALL message( 'check_parameters', 'PA0688', 1, 2, 0, 6, 0 ) 531 ENDIF 532 533 IF ( ocean_mode ) THEN 534 WRITE( message_string, * ) 'The ocean mode is not allowed if '// & 535 'a closed channel shall be used' 536 CALL message( 'check_parameters', 'PA0689', 1, 2, 0, 6, 0 ) 537 ENDIF 538 539 IF ( momentum_advec /= 'ws-scheme' .OR. & 540 scalar_advec /= 'ws-scheme' ) THEN 541 WRITE( message_string, * ) 'A closed channel require the '// & 542 'upwind scheme of Wicker and ' // & 543 'Skamarock as the advection scheme' 544 CALL message( 'check_parameters', 'PA0690', 1, 2, 0, 6, 0 ) 545 ENDIF 546 ENDIF 509 547 ENDIF 510 548
Note: See TracChangeset
for help on using the changeset viewer.