Changeset 4579 for palm/trunk/SOURCE/data_output_binary_module.f90
- Timestamp:
- Jun 25, 2020 8:05:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_binary_module.f90
r4577 r4579 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 22 ! 21 ! 22 ! 23 23 ! Former revisions: 24 24 ! ----------------- 25 25 ! $Id$ 26 ! corrected formatting to follow PALM coding standard 27 ! 28 ! 4577 2020-06-25 09:53:58Z raasch 26 29 ! further re-formatting to follow the PALM coding standard 27 30 ! … … 192 195 193 196 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 zeros195 196 197 CHARACTER(LEN=charlen), INTENT(IN) :: file_name !< name of file 197 198 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 199 202 INTEGER :: my_rank !< MPI rank of local processor 200 203 INTEGER :: nranks !< number of MPI ranks participating in output 201 202 INTEGER, INTENT(OUT) :: file_id !< file ID203 204 INTEGER, INTENT(OUT) :: return_value !< return value 204 205 … … 250 251 ENDIF 251 252 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 ), & 253 254 FORM='UNFORMATTED', STATUS='NEW', IOSTAT=return_value ) 254 255 … … 352 353 CHARACTER(LEN=*), PARAMETER :: routine_name = 'binary_write_attribute' !< name of this routine 353 354 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 360 359 361 360 INTEGER, INTENT(IN) :: file_id !< file ID 361 INTEGER, INTENT(OUT) :: return_value !< return value 362 362 INTEGER, INTENT(IN) :: variable_id !< variable ID 363 364 INTEGER, INTENT(OUT) :: return_value !< return value365 363 366 364 INTEGER(KIND=1), INTENT(IN), OPTIONAL :: value_int8 !< value of attribute … … 427 425 CHARACTER(LEN=*), PARAMETER :: routine_name = 'binary_init_dimension' !< name of this routine 428 426 429 CHARACTER(LEN=charlen) :: output_string !< output string430 431 427 CHARACTER(LEN=charlen), INTENT(IN) :: dimension_name !< name of dimension 432 428 CHARACTER(LEN=charlen), INTENT(IN) :: dimension_type !< data type of dimension 433 429 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 435 433 INTEGER, INTENT(IN) :: dimension_length !< length of dimension 436 434 INTEGER, INTENT(IN) :: file_id !< file ID 437 438 INTEGER, INTENT(OUT) :: dimension_id !< dimension ID439 435 INTEGER, INTENT(OUT) :: return_value !< return value 440 436 INTEGER, INTENT(OUT) :: variable_id !< variable ID … … 461 457 ! 462 458 !-- Define variable associated with dimension 463 CALL binary_init_variable( mode, file_id, variable_id, dimension_name, dimension_type, &464 459 CALL binary_init_variable( mode, file_id, variable_id, dimension_name, dimension_type, & 460 (/ dimension_id /), is_global=.TRUE., return_value=return_value ) 465 461 IF ( return_value /= 0 ) THEN 466 462 CALL internal_message( 'error', routine_name // & … … 477 473 SUBROUTINE binary_init_variable( mode, file_id, variable_id, variable_name, variable_type, & 478 474 dimension_ids, is_global, return_value ) 475 479 476 CHARACTER(LEN=*), PARAMETER :: routine_name = 'binary_init_variable' !< name of this routine 480 477 … … 815 812 816 813 WRITE( temp_string, * ) file_id 817 CALL internal_message( 'debug', routine_name // &814 CALL internal_message( 'debug', routine_name // & 818 815 ': close file (file_id=' // TRIM( temp_string ) // ')' ) 819 816 … … 821 818 IF ( return_value /= 0 ) THEN 822 819 WRITE( temp_string, * ) file_id 823 CALL internal_message( 'error', routine_name // &820 CALL internal_message( 'error', routine_name // & 824 821 ': cannot close file (file_id=' // TRIM( temp_string ) // ')' ) 825 822 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.