Changeset 4123 for palm/trunk/SOURCE/data_output_binary_module.f90
- Timestamp:
- Jul 26, 2019 1:45:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_binary_module.f90
r4108 r4123 525 525 !--------------------------------------------------------------------------------------------------! 526 526 SUBROUTINE binary_write_variable( & 527 file_id, var_id, bounds_start, bounds_end, bounds_origin,&528 do_output, is_global,&527 file_id, var_id, bounds_start, value_counts, bounds_origin, & 528 is_global, & 529 529 var_int8_0d, var_int8_1d, var_int8_2d, var_int8_3d, & 530 530 var_int16_0d, var_int16_1d, var_int16_2d, var_int16_3d, & … … 545 545 546 546 INTEGER(iwp), DIMENSION(:), INTENT(IN) :: bounds_origin !< starting index of each dimension 547 INTEGER(iwp), DIMENSION(:), INTENT(IN) :: bounds_end !< ending index of variable548 547 INTEGER(iwp), DIMENSION(:), INTENT(IN) :: bounds_start !< starting index of variable 548 INTEGER(iwp), DIMENSION(:), INTENT(IN) :: value_counts !< count of values along each dimension to be written 549 549 550 550 INTEGER(KIND=1), POINTER, INTENT(IN), OPTIONAL :: var_int8_0d !< output variable … … 568 568 INTEGER(iwp), POINTER, CONTIGUOUS, INTENT(IN), OPTIONAL, DIMENSION(:,:,:) :: var_intwp_3d !< output variable 569 569 570 LOGICAL, INTENT(IN) :: do_output !< write output only if do_output = true571 570 LOGICAL, INTENT(IN) :: is_global !< true if variable is global (same on all PE) 572 571 … … 594 593 IF ( is_global ) CONTINUE ! reqired to prevent compiler warning 595 594 596 IF ( do_output) THEN595 IF ( .NOT. ANY( value_counts == 0 ) ) THEN 597 596 WRITE( file_id ) var_id 598 597 WRITE( file_id ) bounds_start 599 WRITE( file_id ) bounds_end598 WRITE( file_id ) value_counts 600 599 WRITE( file_id ) bounds_origin 601 600 !-- 8bit integer output
Note: See TracChangeset
for help on using the changeset viewer.