Ignore:
Timestamp:
Jun 25, 2020 8:05:07 PM (4 years ago)
Author:
gronemeier
Message:

corrected formatting to follow PALM coding standard (data_output_module, data_output_binary_module, data_output_netcdf4_module)

File:
1 edited

Legend:

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

    r4577 r4579  
    1919! Current revisions:
    2020! ------------------
    21 ! 
    22 ! 
     21!
     22!
    2323! Former revisions:
    2424! -----------------
    2525! $Id$
     26! corrected formatting to follow PALM coding standard
     27!
     28! 4577 2020-06-25 09:53:58Z raasch
    2629! further re-formatting to follow the PALM coding standard
    2730!
     
    192195
    193196    CHARACTER(LEN=charlen)             ::  bin_filename = ''  !< actual name of binary file
    194     CHARACTER(LEN=7)                   ::  my_rank_char       !< string containing value of my_rank with leading zeros
    195 
    196197    CHARACTER(LEN=charlen), INTENT(IN) ::  file_name          !< name of file
    197198    CHARACTER(LEN=*),       INTENT(IN) ::  mode               !< operation mode
    198 
     199    CHARACTER(LEN=7)                   ::  my_rank_char       !< string containing value of my_rank with leading zeros
     200
     201    INTEGER, INTENT(OUT) ::  file_id       !< file ID
    199202    INTEGER              ::  my_rank       !< MPI rank of local processor
    200203    INTEGER              ::  nranks        !< number of MPI ranks participating in output
    201 
    202     INTEGER, INTENT(OUT) ::  file_id       !< file ID
    203204    INTEGER, INTENT(OUT) ::  return_value  !< return value
    204205
     
    250251          ENDIF
    251252
    252           OPEN( config_file_unit, FILE=TRIM( config_file_name ) // TRIM( file_suffix ),          &
     253          OPEN( config_file_unit, FILE=TRIM( config_file_name ) // TRIM( file_suffix ),            &
    253254                FORM='UNFORMATTED', STATUS='NEW', IOSTAT=return_value )
    254255
     
    352353    CHARACTER(LEN=*), PARAMETER ::  routine_name = 'binary_write_attribute'  !< name of this routine
    353354
    354     CHARACTER(LEN=charlen)                       ::  attribute_type        !< data type of attribute
    355     CHARACTER(LEN=charlen)                       ::  output_string         !< output string
    356 
    357     CHARACTER(LEN=charlen), INTENT(IN)           ::  attribute_name        !< name of attribute
    358     CHARACTER(LEN=charlen), INTENT(IN), OPTIONAL ::  value_char            !< value of attribute
    359 
     355    CHARACTER(LEN=charlen), INTENT(IN)           ::  attribute_name  !< name of attribute
     356    CHARACTER(LEN=charlen)                       ::  attribute_type  !< data type of attribute
     357    CHARACTER(LEN=charlen)                       ::  output_string   !< output string
     358    CHARACTER(LEN=charlen), INTENT(IN), OPTIONAL ::  value_char      !< value of attribute
    360359
    361360    INTEGER, INTENT(IN)  ::  file_id       !< file ID
     361    INTEGER, INTENT(OUT) ::  return_value  !< return value
    362362    INTEGER, INTENT(IN)  ::  variable_id   !< variable ID
    363 
    364     INTEGER, INTENT(OUT) ::  return_value  !< return value
    365363
    366364    INTEGER(KIND=1), INTENT(IN), OPTIONAL ::  value_int8   !< value of attribute
     
    427425    CHARACTER(LEN=*), PARAMETER ::  routine_name = 'binary_init_dimension'  !< name of this routine
    428426
    429     CHARACTER(LEN=charlen)             ::  output_string   !< output string
    430 
    431427    CHARACTER(LEN=charlen), INTENT(IN) ::  dimension_name  !< name of dimension
    432428    CHARACTER(LEN=charlen), INTENT(IN) ::  dimension_type  !< data type of dimension
    433429    CHARACTER(LEN=*),       INTENT(IN) ::  mode            !< operation mode
    434 
     430    CHARACTER(LEN=charlen)             ::  output_string   !< output string
     431
     432    INTEGER, INTENT(OUT) ::  dimension_id      !< dimension ID
    435433    INTEGER, INTENT(IN)  ::  dimension_length  !< length of dimension
    436434    INTEGER, INTENT(IN)  ::  file_id           !< file ID
    437 
    438     INTEGER, INTENT(OUT) ::  dimension_id      !< dimension ID
    439435    INTEGER, INTENT(OUT) ::  return_value      !< return value
    440436    INTEGER, INTENT(OUT) ::  variable_id       !< variable ID
     
    461457!
    462458!-- Define variable associated with dimension
    463     CALL binary_init_variable( mode, file_id, variable_id, dimension_name, dimension_type,        &
    464                                 (/ dimension_id /), is_global=.TRUE., return_value=return_value )
     459    CALL binary_init_variable( mode, file_id, variable_id, dimension_name, dimension_type,         &
     460                               (/ dimension_id /), is_global=.TRUE., return_value=return_value )
    465461    IF ( return_value /= 0 )  THEN
    466462       CALL internal_message( 'error', routine_name //                                             &
     
    477473 SUBROUTINE binary_init_variable( mode, file_id, variable_id, variable_name, variable_type,        &
    478474                                  dimension_ids, is_global, return_value )
     475
    479476    CHARACTER(LEN=*), PARAMETER ::  routine_name = 'binary_init_variable'  !< name of this routine
    480477
     
    815812
    816813       WRITE( temp_string, * ) file_id
    817        CALL internal_message( 'debug', routine_name // &
     814       CALL internal_message( 'debug', routine_name //                                             &
    818815                              ': close file (file_id=' // TRIM( temp_string ) // ')' )
    819816
     
    821818       IF ( return_value /= 0 )  THEN
    822819          WRITE( temp_string, * ) file_id
    823           CALL internal_message( 'error', routine_name // &
     820          CALL internal_message( 'error', routine_name //                                          &
    824821                                 ': cannot close file (file_id=' // TRIM( temp_string ) // ')' )
    825822       ENDIF
Note: See TracChangeset for help on using the changeset viewer.