Ignore:
Timestamp:
Jan 15, 2021 3:22:11 PM (3 years ago)
Author:
raasch
Message:

local namelist parameter added to switch off the module although the respective module namelist appears in the namelist file, further copyright updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/virtual_flight_mod.f90

    r4842 r4843  
    2525! -----------------
    2626! $Id$
     27! local namelist parameter added to switch off the module although the respective module namelist
     28! appears in the namelist file
     29!
     30! 4842 2021-01-14 10:42:28Z raasch
    2731! reading of namelist file and actions in case of namelist errors revised so that statement labels
    2832! and goto statements are not required any more
     
    236240    INTEGER(iwp) ::  io_status   !< status after reading the namelist file
    237241
    238 
    239     NAMELIST /virtual_flight_parameters/ flight_angle,                                             &
    240                                          flight_begin,                                             &
    241                                          flight_end,                                               &
    242                                          flight_level,                                             &
    243                                          leg_mode,                                                 &
    244                                          max_elev_change,                                          &
    245                                          rate_of_climb,                                            &
    246                                          speed_agl,                                                &
    247                                          x_end,                                                    &
    248                                          x_start,                                                  &
    249                                          y_end,                                                    &
    250                                          y_start
     242    LOGICAL ::  switch_off_module = .FALSE.  !< local namelist parameter to switch off the module
     243                                             !< although the respective module namelist appears in
     244                                             !< the namelist file
     245
     246    NAMELIST /virtual_flight_parameters/  flight_angle,                                            &
     247                                          flight_begin,                                            &
     248                                          flight_end,                                              &
     249                                          flight_level,                                            &
     250                                          leg_mode,                                                &
     251                                          max_elev_change,                                         &
     252                                          rate_of_climb,                                           &
     253                                          speed_agl,                                               &
     254                                          switch_off_module,                                       &
     255                                          x_end,                                                   &
     256                                          x_start,                                                 &
     257                                          y_end,                                                   &
     258                                          y_start
     259
    251260
    252261!
     
    261270!--    virtual_flight_parameters namelist was found and read correctly. Set switch that virtual
    262271!--    flights are carried out.
    263        virtual_flight = .TRUE.
     272       IF ( .NOT. switch_off_module )  virtual_flight = .TRUE.
    264273
    265274    ELSEIF ( io_status > 0 )  THEN
Note: See TracChangeset for help on using the changeset viewer.