Changeset 258 for palm/trunk/SOURCE


Ignore:
Timestamp:
Mar 13, 2009 12:36:03 PM (15 years ago)
Author:
heinze
Message:

Output of messages replaced by message handling routine.

Location:
palm/trunk/SOURCE
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/CURRENT_MODIFICATIONS

    r257 r258  
    2929init_1d_model, init_3d_model, init_dvrp, init_grid, init_particles, init_pegrid,
    3030netcdf, parin, plant_canopy_model, poisfft_hybrid, poismg, read_3d_binary,
    31 read_var_list)
     31read_var_list, surface_coupler, temperton_fft, timestep, user_actions,
     32user_data_output_dvrp, user_dvrp_coltab, user_init_grid, user_init_plant_canopy,
     33user_parin, user_read_restart_data, user_spectra )
    3234
    3335First constant in array den also defined as type double. (eqn_state_seawater)
     
    3739user_init_grid, user_parin, write_var_list)
    3840
    39 advec_particles, advec_s_bc, buoyancy, calc_spectra, check_for_restart, check_open, check_parameters, coriolis, cpu_log, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_spectra,  eqn_state_seawater, fft_xy, flow_statistics, header, init_1d_model, init_3d_model, init_dvrp, init_grid, init_particles, init_pegrid, netcdf, parin, plant_canopy_model, poisfft_hybrid, poismg, read_3d_binary, read_var_list, sort_particles, user_check_parameters, user_header, user_init_grid, user_parin, write_var_list
     41advec_particles, advec_s_bc, buoyancy, calc_spectra, check_for_restart, check_open, check_parameters, coriolis, cpu_log, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_spectra,  eqn_state_seawater, fft_xy, flow_statistics, header, init_1d_model, init_3d_model, init_dvrp, init_grid, init_particles, init_pegrid, netcdf, parin, plant_canopy_model, poisfft_hybrid, poismg, read_3d_binary, read_var_list, sort_particles, user_check_parameters, user_header, user_init_grid, user_parin, surface_coupler, temperton_fft, timestep, user_actions, user_data_output_dvrp, user_dvrp_coltab, user_init_grid, user_init_plant_canopy, user_parin, user_read_restart_data, user_spectra, write_var_list
    4042
    4143
  • palm/trunk/SOURCE/surface_coupler.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    5253                       0, comm_inter, status, ierr )
    5354    IF ( terminate_coupled_remote > 0 )  THEN
    54        IF ( myid == 0 )  THEN
    55           PRINT*, '+++ surface_coupler:'
    56           PRINT*, '    remote model "', TRIM( coupling_mode_remote ), &
    57                '" terminated'
    58           PRINT*, '    with terminate_coupled_remote = ', &
    59                terminate_coupled_remote
    60           PRINT*, '    local model  "', TRIM( coupling_mode ), &
    61                '" has'
    62           PRINT*, '    terminate_coupled = ', &
    63                terminate_coupled
    64        ENDIF
    65        CALL local_stop
     55       WRITE( message_string, * ) 'remote model "', TRIM( coupling_mode_remote ), &
     56                                  '" terminated',                                 &
     57                                  '&with terminate_coupled_remote = ',            &
     58                                  terminate_coupled_remote,                       &
     59                                  '&local model  "', TRIM( coupling_mode ),       &
     60                                  '" has',                                        &
     61                                  '&terminate_coupled = ',                        &
     62                                  terminate_coupled
     63       CALL message( 'surface_coupler', 'PA0310', 1, 2, 0, 6, 0 )
    6664       RETURN
    6765    ENDIF
  • palm/trunk/SOURCE/temperton_fft.f90

    r4 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    18841885
    18851886
     1887    USE control_parameters
    18861888    USE pegrid
    18871889
     
    19451947
    19461948!    WRITE (nout,'(A,I4,A)') ' n =',n,' - Contains illegal factors'
    1947     IF ( myid == 0 )  THEN
    1948        PRINT*, '+++ temperton_fft:'
    1949        PRINT*, '    number of gridpoints along x or/and y contain illegal ', &
    1950                     'factors'
    1951        PRINT*, '    only factors 8,6,5,4,3,2 are allowed'
    1952     ENDIF
    1953     CALL local_stop
    1954 
     1949    message_string = 'number of gridpoints along x or/and y ' // &
     1950                     'contain illegal  factors' //               &
     1951                     '&only factors 8,6,5,4,3,2 are allowed'
     1952    CALL message( 'temperton_fft', 'PA0311', 1, 2, 0, 6, 0 )
    19551953
    19561954    RETURN
  • palm/trunk/SOURCE/timestep.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    201202          stop_dt = .TRUE.
    202203
    203           IF ( myid == 0 )  THEN
    204              PRINT*,'+++ time_step: Time step has reached minimum limit.'
    205              PRINT*,'    dt      = ', dt_3d, ' s   Simulation is terminated.'
    206              PRINT*,'    old_dt  = ', old_dt, ' s'
    207              PRINT*,'    dt_u    = ', dt_u, ' s'
    208              PRINT*,'    dt_v    = ', dt_v, ' s'
    209              PRINT*,'    dt_w    = ', dt_w, ' s'
    210              PRINT*,'    dt_diff = ', dt_diff, ' s'
    211              PRINT*,'    u_max   = ', u_max, ' m/s   k=', u_max_ijk(1), &
    212                     '  j=', u_max_ijk(2), '  i=', u_max_ijk(3)
    213              PRINT*,'    v_max   = ', v_max, ' m/s   k=', v_max_ijk(1), &
    214                     '  j=', v_max_ijk(2), '  i=', v_max_ijk(3)
    215              PRINT*,'    w_max   = ', w_max, ' m/s   k=', w_max_ijk(1), &
    216                     '  j=', w_max_ijk(2), '  i=', w_max_ijk(3)
    217           ENDIF
     204          WRITE( message_string, * ) 'Time step has reached minimum limit.',        &
     205                             '&dt      = ', dt_3d, ' s  Simulation is terminated.', &
     206                             '&old_dt  = ', old_dt, ' s',                           &
     207                             '&dt_u    = ', dt_u, ' s',                             &
     208                             '&dt_v    = ', dt_v, ' s',                             &
     209                             '&dt_w    = ', dt_w, ' s',                             &
     210                             '&dt_diff = ', dt_diff, ' s',                          &
     211                             '&u_max   = ', u_max, ' m/s   k=', u_max_ijk(1),       &
     212                             '  j=', u_max_ijk(2), '  i=', u_max_ijk(3),            &
     213                             '&v_max   = ', v_max, ' m/s   k=', v_max_ijk(1),       &
     214                             '  j=', v_max_ijk(2), '  i=', v_max_ijk(3),            &
     215                             '&w_max   = ', w_max, ' m/s   k=', w_max_ijk(1),       &
     216                             '  j=', w_max_ijk(2), '  i=', w_max_ijk(3)
     217          CALL message( 'timestep', 'PA0312', 0, 1, 0, 6, 0 )
    218218!
    219219!--       In case of coupled runs inform the remote model of the termination
  • palm/trunk/SOURCE/user_actions.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    113114
    114115          CASE DEFAULT
    115              IF ( myid == 0 )  PRINT*, '+++ user_actions: unknown location "', &
    116                                        location, '"'
    117              CALL local_stop
     116             message_string = 'unknown location "' // location // '"'
     117             CALL message( 'user_actions', 'UI0001', 1, 2, 0, 6, 0 )
    118118
    119119       END SELECT
     
    168168
    169169          CASE ( 'before_timestep', 'after_integration', 'after_timestep' )
    170              IF ( myid == 0 )  THEN
    171                 PRINT*, '+++ user_actions: location "', location, '" is not ', &
     170             message_string = 'location "' // location // '" is not ' // &
    172171                             'allowed to be called with parameters "i" and "j"'
    173              ENDIF
    174              CALL local_stop
     172             CALL message( 'user_actions', 'UI0002', 1, 2, 0, 6, 0 )
    175173
    176174
    177175          CASE DEFAULT
    178              IF ( myid == 0 )  PRINT*, '+++ user_actions: unknown location "', &
    179                                        location, '"'
    180              CALL local_stop
    181 
     176             message_string = 'unknown location "' // location // '"'
     177             CALL message( 'user_actions', 'UI0001', 1, 2, 0, 6, 0 )
     178             
    182179
    183180       END SELECT
  • palm/trunk/SOURCE/user_data_output_dvrp.f90

    r246 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
     6! Output of messages replaced by message handling routine.
    67! Clipping implemented
    78!
     
    5859!--       wrong character string that is neither recognized in data_output_dvrp
    5960!--       nor here in user_data_output_dvrp.
    60           IF ( myid == 0 )  THEN
    61              PRINT*,'+++ (user_)data_output_dvrp: no output possible for: ', &
    62                   output_variable
    63           ENDIF
     61          WRITE( message_string, * ) 'no output possible for: ', &
     62                                     output_variable
     63          CALL message( 'user_data_output_dvrp', 'UI0003', 0, 0, 0, 6, 0 )
     64         
    6465
    6566    END SELECT
  • palm/trunk/SOURCE/user_dvrp_coltab.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    1718! Definition of the colour table to be used by the dvrp software.
    1819!------------------------------------------------------------------------------!
    19 
     20   
     21    USE control_parameters
    2022    USE dvrp_variables
    2123    USE pegrid
     
    3739
    3840       CASE DEFAULT
    39           IF ( myid == 0 )  PRINT*, '+++ user_dvrp_coltab: unknown mode "', &
    40                                     mode, '"'
    41           CALL local_stop
     41          message_string = 'unknown mode "' // mode // '"'
     42          CALL message( 'user_dvrp_coltab', 'UI0004', 1, 2, 0, 6, 0 )
     43
    4244
    4345    END SELECT
  • palm/trunk/SOURCE/user_init_grid.f90

    r256 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
     6! Output of messages replaced by message handling routine.
    67! add 'single_street_canyon' as standard topography case
    78! -topography_grid_convention
     
    4849!--       Here the user can define his own topography.
    4950!--       After definition, please remove the following three lines!
    50           PRINT*, '+++ user_init_grid: topography "', &
    51                topography, '" not available yet'
    52           CALL local_stop
     51          message_string = 'topography "' // topography // '" not available yet'
     52          CALL message( 'user_init_grid', 'UI0005', 1, 2, 0, 6, 0 )
    5353
    5454       CASE DEFAULT
     
    5757!--       wrong character string that is neither recognized in init_grid nor
    5858!--       here in user_init_grid.
    59           PRINT*, '+++ (user_)init_grid: unknown topography "', &
    60                topography, '"'
    61           CALL local_stop
     59          message_string = 'unknown topography "' // topography // '"'
     60          CALL message( 'user_init_grid', 'UI0006', 1, 2, 0, 6, 0 )
    6261
    6362    END SELECT
  • palm/trunk/SOURCE/user_init_plant_canopy.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
     7!
    78!
    89! Former revisions:
     
    5960!--       After definition, please
    6061!--       remove the following three lines!
    61           PRINT*, '+++ user_init_plant_canopy: canopy_mode "', &
    62                canopy_mode, '" not available yet'
    63 
     62          message_string = 'canopy_mode "' // canopy_mode // '" not available yet'
     63          CALL message( 'user_init_plant_canopy', 'UI0007', 0, 1, 0, 6, 0 )
     64         
    6465       CASE DEFAULT
    6566!
     
    6768!--       wrong character string that is neither recognized in init_3d_model nor
    6869!--       here in user_init_plant_canopy.
    69           PRINT*, '+++ user_init_plant_canopy: unknown canopy_mode "', &
    70                canopy_mode, '"'
    71           CALL local_stop
     70          message_string = 'unknown canopy_mode "' // canopy_mode // '"'
     71          CALL message( 'user_init_plant_canopy', 'UI0008', 1, 2, 0, 6, 0 )
    7272
    7373    END SELECT
  • palm/trunk/SOURCE/user_parin.f90

    r256 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
     6! Output of messages replaced by message handling routine.
    67! topography_grid_convention moved to inipar
    78!
     
    7475    IF ( TRIM( initializing_actions ) == 'read_restart_data' )  THEN
    7576       IF ( max_pr_user /= max_pr_user_tmp )  THEN
    76           PRINT*, '+++ user_parin: the number of user-defined profiles given in'
    77           PRINT*, '                data_output_pr (', max_pr_user_tmp, ' doe', &
    78                                    's not match the one'
    79           PRINT*, '                found in the restart file (', max_pr_user, &
    80                                    ')'
    81           CALL local_stop
     77          WRITE( message_string, * ) 'the number of user-defined profiles given in ', &
     78                                     '&data_output_pr (', max_pr_user_tmp, ') doe',    &
     79                                     'snot match the one ',                           &
     80                                     '&found in the restart file (', max_pr_user,    &
     81                                     ')'
     82          CALL message( 'user_parin', 'UI0009', 1, 2, 0, 6, 0 )
    8283       ENDIF
    8384    ELSE
  • palm/trunk/SOURCE/user_read_restart_data.f90

    r226 r258  
    55
    66!------------------------------------------------------------------------------!
    7 ! Actual revisions:
     7! Current revisions:
    88! -----------------
    9 !
     9! Output of messages replaced by message handling routine.
     10!
    1011!
    1112! Former revisions:
     
    8182!
    8283!                CASE DEFAULT
    83 !                   PRINT*, '+++ user_init: unknown variable named "', &
    84 !                           TRIM( field_char ), '" found in'
    85 !                   PRINT*, '               data from prior run on PE ', myid
    86 !                   CALL local_stop
     84!                   WRITE( message_string, * ) 'unknown variable named "',        &
     85!                                               TRIM( field_char ), '" found in', &
     86!                                              '&data from prior run on PE ', myid
     87!                   CALL message( 'user_spectra', 'UI0012', 1, 2, 0, 6, 0 )
    8788!
    8889!             END SELECT
  • palm/trunk/SOURCE/user_spectra.f90

    r226 r258  
    22
    33!------------------------------------------------------------------------------!
    4 ! Actual revisions:
     4! Current revisions:
    55! -----------------
    6 !
     6! Output of messages replaced by message handling routine.
    77!
    88! Former revisions:
     
    2121
    2222    USE arrays_3d
     23    USE control_parameters
    2324    USE indices
    2425    USE spectrum
     
    5253       
    5354          CASE DEFAULT
    54              PRINT*, '+++ user_spectra/preprocess: Spectra of ', &
    55                   TRIM( data_output_sp(m) ), ' can not be calculated'
    56          
     55             message_string = 'Spectra of ' // &
     56                              TRIM( data_output_sp(m) ) // ' can not be calculated'
     57             CALL message( 'user_spectra', 'UI0010', 0, 0, 0, 6, 0 )
     58           
    5759       END SELECT
    5860
     
    6971
    7072          CASE DEFAULT
    71              PRINT*, '+++ user_spectra/data_output: Spectra of ', &
    72                           TRIM( data_output_sp(m) ), ' are not defined'
    73 
     73             message_string = 'Spectra of ' //  &
     74                              TRIM( data_output_sp(m) ) // ' are not defined'
     75             CALL message( 'user_spectra', 'UI0011', 0, 0, 0, 6, 0 )
     76             
    7477          END SELECT
    7578
Note: See TracChangeset for help on using the changeset viewer.