Changeset 4843 for palm/trunk/SOURCE/nesting_offl_mod.f90
- Timestamp:
- Jan 15, 2021 3:22:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/nesting_offl_mod.f90
r4842 r4843 24 24 ! ----------------- 25 25 ! $Id$ 26 ! local namelist parameter added to switch off the module although the respective module namelist 27 ! appears in the namelist file 28 ! 29 ! 4842 2021-01-14 10:42:28Z raasch 26 30 ! reading of namelist file and actions in case of namelist errors revised so that statement labels 27 31 ! and goto statements are not required any more … … 2453 2457 2454 2458 CHARACTER(LEN=100) :: line !< dummy string that contains the current line of the parameter file 2459 2455 2460 INTEGER(iwp) :: io_status !< status after reading the namelist file 2456 2461 2457 2458 NAMELIST /nesting_offl_parameters/ nesting_offline 2462 LOGICAL :: switch_off_module = .FALSE. !< local namelist parameter to switch off the module 2463 !< although the respective module namelist appears in 2464 !< the namelist file 2465 2466 NAMELIST /nesting_offl_parameters/ switch_off_module 2467 2459 2468 2460 2469 ! … … 2465 2474 ! 2466 2475 !-- Action depending on the READ status 2467 IF ( io_status > 0 ) THEN 2476 IF ( io_status == 0 ) THEN 2477 ! 2478 !-- nesting_offl_parameters namelist was found and read correctly. Enable the 2479 !-- offline nesting. 2480 IF ( .NOT. switch_off_module ) nesting_offline = .TRUE. 2481 2482 ELSEIF ( io_status > 0 ) THEN 2468 2483 ! 2469 2484 !-- nesting_offl_parameters namelist was found but contained errors. Print an error message
Note: See TracChangeset
for help on using the changeset viewer.