Ignore:
Timestamp:
Aug 21, 2017 2:59:59 PM (7 years ago)
Author:
kanani
Message:

Vertical nesting implemented (SadiqHuq?)

File:
1 edited

Legend:

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

    r2354 r2365  
    2525! -----------------
    2626! $Id$
     27! Vertical grid nesting implemented: Check coupling mode. Generate file header
     28! (SadiqHuq)
     29!
     30! 2354 2017-08-17 10:49:36Z schwenkel
    2731! Bugfix correlated to lsm_check_data_output_pr.
    2832! If-statement for following checks is essential, otherwise units for lsm output
     
    561565    USE wind_turbine_model_mod,                                                &
    562566        ONLY:  wtm_check_parameters, wind_turbine
     567    USE vertical_nesting_mod,                                                  &
     568        ONLY:  vnested, vnest_check_parameters
    563569
    564570
     
    603609!> @todo Check if any queries for other coupling modes (e.g. precursor_ocean) are missing
    604610    IF ( coupling_mode /= 'uncoupled'            .AND.  &
     611         coupling_mode /= 'vnested_crse'         .AND.  &
     612         coupling_mode /= 'vnested_fine'         .AND.  &
    605613         coupling_mode /= 'atmosphere_to_ocean'  .AND.  &
    606614         coupling_mode /= 'ocean_to_atmosphere' )  THEN
     
    611619!
    612620!-- Check dt_coupling, restart_time, dt_restart, end_time, dx, dy, nx and ny
    613     IF ( coupling_mode /= 'uncoupled')  THEN
     621    IF ( coupling_mode /= 'uncoupled'  .AND.                                   &
     622         coupling_mode(1:8) /= 'vnested_' )  THEN
    614623
    615624       IF ( dt_coupling == 9999999.9_wp )  THEN
     
    809818    IF ( coupling_mode == 'uncoupled' )  THEN
    810819       coupling_string = ''
     820    ELSEIF ( coupling_mode == 'vnested_crse' )  THEN
     821       coupling_string = ' nested (coarse)'
     822    ELSEIF ( coupling_mode == 'vnested_fine' )  THEN
     823       coupling_string = ' nested (fine)'
    811824    ELSEIF ( coupling_mode == 'atmosphere_to_ocean' )  THEN
    812825       coupling_string = ' coupled (atmosphere)'
     
    38583871    ENDIF
    38593872
     3873!-- Vertical nesting: check fine and coarse grid compatibility for data exchange
     3874    IF ( vnested )  CALL vnest_check_parameters
     3875
    38603876    CALL location_message( 'finished', .TRUE. )
    38613877!
Note: See TracChangeset for help on using the changeset viewer.