Changeset 4843 for palm/trunk/SOURCE/pmc_handle_communicator_mod.f90
- Timestamp:
- Jan 15, 2021 3:22:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_handle_communicator_mod.f90
r4828 r4843 25 25 ! ----------------- 26 26 ! $Id$ 27 ! local namelist parameter added to switch off the module although the respective module namelist 28 ! appears in the namelist file 29 ! 30 ! 4828 2021-01-05 11:21:41Z Giersch 27 31 ! Canopy-restricted anterpolation introduced. New namelist parameter anterpolation_starting_height 28 32 ! introduced for controlling canopy-restricted anterpolation. … … 445 449 INTEGER(iwp) :: bad_llcorner !< 446 450 INTEGER(iwp) :: i !< 447 INTEGER(iwp) :: istat !< 451 INTEGER(iwp) :: io_status !< 452 453 LOGICAL :: switch_off_module = .FALSE. !< local namelist parameter to switch off the module 454 !< although the respective module namelist appears in 455 !< the namelist file 448 456 449 457 TYPE(pmc_layout), DIMENSION(pmc_max_models) :: domain_layouts !< 450 458 451 NAMELIST /nesting_parameters/ domain_layouts, & 459 NAMELIST /nesting_parameters/ anterpolation_buffer_width, & 460 anterpolation_starting_height, & 461 domain_layouts, & 452 462 nesting_datatransfer_mode, & 453 463 nesting_mode, & 454 anterpolation_buffer_width, &455 anterpolation_starting_height 464 switch_off_module 465 456 466 457 467 ! … … 460 470 m_ncpl = 0 461 471 462 pmc_status = pmc_ status_ok472 pmc_status = pmc_no_namelist_found 463 473 ! 464 474 !-- Open the NAMELIST-file and read the nesting layout 465 475 CALL check_open( 11 ) 466 READ ( 11, nesting_parameters, IOSTAT = i stat)476 READ ( 11, nesting_parameters, IOSTAT = io_status ) 467 477 ! 468 478 !-- Set filepointer to the beginning of the file. Otherwise process 0 will later be unable to read … … 470 480 REWIND ( 11 ) 471 481 472 IF ( istat < 0 ) THEN 482 IF ( io_status == 0 ) THEN 483 ! 484 !-- nesting_parameters namelist was found and read correctly. Enable the nesting by setting 485 !-- the palm model coupler status respectively. 486 IF ( .NOT. switch_off_module ) THEN 487 pmc_status = pmc_status_ok 488 ELSE 489 RETURN 490 ENDIF 491 ELSEIF ( io_status < 0 ) THEN 473 492 ! 474 493 !-- No nesting_parameters-NAMELIST found 475 pmc_status = pmc_no_namelist_found476 494 RETURN 477 ELSEIF ( i stat> 0 ) THEN495 ELSEIF ( io_status > 0 ) THEN 478 496 ! 479 497 !-- Errors in reading nesting_parameters-NAMELIST … … 481 499 RETURN 482 500 ENDIF 501 483 502 ! 484 503 !-- Output location message
Note: See TracChangeset
for help on using the changeset viewer.