Ignore:
Timestamp:
May 22, 2019 9:52:13 AM (5 years ago)
Author:
kanani
Message:

clean up location, debug and error messages

File:
1 edited

Legend:

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

    r3939 r3987  
    2525! -----------------
    2626! $Id$
     27! Convert most location messages to debug messages to reduce output in
     28! job logfile to a minimum
     29!
     30!
    2731! unused variable removed
    2832!
     
    737741    INTEGER(iwp) ::  nz_s_shift_l !< topography-top index on scalar-grid, used to vertically shift initial profiles
    738742
    739     CALL location_message( 'init_3d_model', 'start' )
    740     CALL location_message( 'allocating arrays', 'start' )
     743
     744    CALL location_message( 'model initialization', 'start' )
     745
     746    IF ( debug_output )  CALL debug_message( 'allocating arrays', 'start' )
    741747!
    742748!-- Allocate arrays
     
    10871093    intermediate_timestep_count = 0  ! needed when simulated_time = 0.0
    10881094       
    1089     CALL location_message( 'allocating arrays', 'finished' )
     1095    IF ( debug_output )  CALL debug_message( 'allocating arrays', 'end' )
    10901096
    10911097!
     
    11101116!--    Initialization with provided input data derived from larger-scale model
    11111117       IF ( INDEX( initializing_actions, 'inifor' ) /= 0 )  THEN
    1112           CALL location_message( 'initializing with INIFOR', 'start' )
     1118          IF ( debug_output )  CALL debug_message( 'initializing with INIFOR', 'start' )
    11131119!
    11141120!--       Read initial 1D profiles or 3D data from NetCDF file, depending
     
    13131319          CALL init_surfaces
    13141320
    1315           CALL location_message( 'initializing with INIFOR', 'finished' )
     1321          IF ( debug_output )  CALL debug_message( 'initializing with INIFOR', 'end' )
    13161322!
    13171323!--    Initialization via computed 1D-model profiles
    13181324       ELSEIF ( INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 )  THEN
    13191325
    1320           CALL location_message( 'initializing with 1D model profiles', 'start' )
     1326          IF ( debug_output )  CALL debug_message( 'initializing with 1D model profiles', 'start' )
    13211327!
    13221328!--       Use solutions of the 1D model as initial profiles,
     
    13801386          CALL init_surfaces
    13811387
    1382           CALL location_message( 'initializing with 1D model profiles', 'finished' )
     1388          IF ( debug_output )  CALL debug_message( 'initializing with 1D model profiles', 'end' )
    13831389
    13841390       ELSEIF ( INDEX(initializing_actions, 'set_constant_profiles') /= 0 )    &
    13851391       THEN
    13861392
    1387           CALL location_message( 'initializing with constant profiles', 'start' )
     1393          IF ( debug_output )  CALL debug_message( 'initializing with constant profiles', 'start' )
    13881394
    13891395!
     
    14481454          CALL init_surfaces
    14491455         
    1450           CALL location_message( 'initializing with constant profiles', 'finished' )
     1456          IF ( debug_output )  CALL debug_message( 'initializing with constant profiles', 'end' )
    14511457
    14521458       ELSEIF ( INDEX(initializing_actions, 'by_user') /= 0 )                  &
    14531459       THEN
    14541460
    1455           CALL location_message( 'initializing by user', 'start' )
     1461          IF ( debug_output )  CALL debug_message( 'initializing by user', 'start' )
    14561462!
    14571463!--       Pre-initialize surface variables, i.e. setting start- and end-indices
     
    14631469          CALL user_init_3d_model
    14641470
    1465           CALL location_message( 'initializing by user', 'finished' )
    1466 
    1467        ENDIF
    1468 
    1469        CALL location_message( 'initializing statistics, boundary conditions, etc.', 'start' )
     1471          IF ( debug_output )  CALL debug_message( 'initializing by user', 'end' )
     1472
     1473       ENDIF
     1474
     1475       IF ( debug_output )  CALL debug_message( 'initializing statistics, boundary conditions, etc.', 'start' )
    14701476
    14711477!
     
    16011607       ENDIF       
    16021608
    1603        CALL location_message( 'initializing statistics, boundary conditions, etc.', 'finished' )
     1609       IF ( debug_output )  CALL debug_message( 'initializing statistics, boundary conditions, etc.', 'end' )
    16041610
    16051611    ELSEIF ( TRIM( initializing_actions ) == 'read_restart_data'  .OR.         &
     
    16071613    THEN
    16081614
    1609        CALL location_message( 'initializing in case of restart / cyclic_fill', 'start' )
     1615       IF ( debug_output )  CALL debug_message( 'initializing in case of restart / cyclic_fill', 'start' )
    16101616!
    16111617!--    Initialize surface elements and its attributes, e.g. heat- and
     
    18671873       IF ( passive_scalar )  ts_m  = 0.0_wp
    18681874
    1869        CALL location_message( 'initializing in case of restart / cyclic_fill', 'finished' )
     1875       IF ( debug_output )  CALL debug_message( 'initializing in case of restart / cyclic_fill', 'end' )
    18701876
    18711877    ELSE
     
    22282234         TRIM( initializing_actions ) /= 'cyclic_fill' )  THEN
    22292235
     2236       IF ( debug_output )  CALL debug_message( 'creating disturbances + applying pressure solver', 'start' )
    22302237!
    22312238!--    Needed for both disturb_field and pres
     
    22352242!$ACC COPY(v(nzb:nzt+1,nysg:nyng,nxlg:nxrg))
    22362243
    2237        CALL location_message( 'creating initial disturbances', 'start' )
    22382244       CALL disturb_field( 'u', tend, u )
    22392245       CALL disturb_field( 'v', tend, v )
    2240        CALL location_message( 'creating initial disturbances', 'finished' )
    22412246
    22422247!$ACC DATA &
     
    22552260!$ACC COPYIN(bc_h(1)%k(1:bc_h(1)%ns))
    22562261
    2257        CALL location_message( 'applying pressure solver', 'start' )
    22582262       n_sor = nsor_ini
    22592263       CALL pres
    22602264       n_sor = nsor
    2261        CALL location_message( 'applying pressure solver', 'finished' )
    22622265
    22632266!$ACC END DATA
    22642267!$ACC END DATA
     2268
     2269       IF ( debug_output )  CALL debug_message( 'creating disturbances + applying pressure solver', 'end' )
    22652270
    22662271    ENDIF
     
    24662471
    24672472
    2468     CALL location_message( 'init_3d_model', 'finished' )
     2473    CALL location_message( 'model initialization', 'finished' )
    24692474
    24702475 END SUBROUTINE init_3d_model
Note: See TracChangeset for help on using the changeset viewer.