Changeset 4779 for palm/trunk
- Timestamp:
- Nov 9, 2020 5:45:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_particle_mod.f90
r4778 r4779 24 24 ! ----------------- 25 25 ! $Id$ 26 ! Avoid overlong lines and unused variables 27 ! 28 ! 4778 2020-11-09 13:40:05Z raasch 26 29 ! Initial implementation (K. Ketelsen) 27 30 ! … … 494 497 IF (part_io%iam_io_pe) THEN 495 498 IF(variables(i)%is_integer) THEN 496 CALL netcdf4_write_variable('parallel', file_id, variables(i)%var_id, bounds_start, value_counts, bounds_origin, & 497 .FALSE., values_int32_1d=out_buf_i, return_value=return_value) 499 CALL netcdf4_write_variable('parallel', file_id, variables(i)%var_id, bounds_start,& 500 value_counts, bounds_origin, & 501 .FALSE., values_int32_1d=out_buf_i, return_value=return_value) 498 502 ELSE 499 CALL netcdf4_write_variable('parallel', file_id, variables(i)%var_id, bounds_start, value_counts, bounds_origin, & 500 .FALSE., values_real32_1d=out_buf_r, return_value=return_value) 503 CALL netcdf4_write_variable('parallel', file_id, variables(i)%var_id, bounds_start,& 504 value_counts, bounds_origin, & 505 .FALSE., values_real32_1d=out_buf_r, return_value=return_value) 501 506 ENDIF 502 507 ENDIF … … 520 525 time_axis_values(icount) = my_time(1) 521 526 ELSE 522 CALL netcdf4_write_variable('parallel', file_id, var_id%time, bounds_start(1:1), value_counts(1:1), bounds_origin(1:1), & 523 .TRUE., values_realwp_1d=my_time, return_value=return_value) 527 CALL netcdf4_write_variable('parallel', file_id, var_id%time, bounds_start(1:1), & 528 value_counts(1:1), bounds_origin(1:1), & 529 .TRUE., values_realwp_1d=my_time, return_value=return_value) 524 530 ENDIF 525 531 DEALLOCATE(my_time) … … 531 537 SUBROUTINE dop_finalize 532 538 IMPLICIT NONE 533 539 #if defined( __netcdf4 ) 534 540 INTEGER(iwp) :: var_len 541 #endif 535 542 INTEGER(iwp) :: return_value !< Return value data_output_netcdf4 .. routines 543 #if defined( __netcdf4 ) 536 544 INTEGER(iwp) :: ierr !< MPI error code 545 #endif 537 546 538 547 IF( win_prt_i /= -1) THEN … … 927 936 IF (part_io%iam_io_pe) THEN 928 937 IF(fix_variables(fix_ind)%is_integer) THEN 929 CALL netcdf4_init_variable( 'parallel', file_id, fix_variables(fix_ind)%var_id, fix_variables(fix_ind)%name, 'int32', & 930 dimension_ids(1:1), .FALSE., return_value ) 938 CALL netcdf4_init_variable( 'parallel', file_id, fix_variables(fix_ind)%var_id, & 939 fix_variables(fix_ind)%name, 'int32', & 940 dimension_ids(1:1), .FALSE., return_value ) 931 941 ELSE 932 CALL netcdf4_init_variable( 'parallel', file_id, fix_variables(fix_ind)%var_id, fix_variables(fix_ind)%name, 'real32', & 933 dimension_ids(1:1), .FALSE., return_value ) 942 CALL netcdf4_init_variable( 'parallel', file_id, fix_variables(fix_ind)%var_id, & 943 fix_variables(fix_ind)%name, 'real32', & 944 dimension_ids(1:1), .FALSE., return_value ) 934 945 ENDIF 935 946 … … 1124 1135 IF (part_io%iam_io_pe) THEN 1125 1136 IF(fix_variables(i)%is_integer) THEN 1126 CALL netcdf4_write_variable('parallel', file_id, fix_variables(i)%var_id, bounds_start, value_counts, bounds_origin,&1127 .FALSE., values_int32_1d=out_buf_i, return_value=return_value)1137 CALL netcdf4_write_variable('parallel', file_id, fix_variables(i)%var_id, bounds_start, value_counts, & 1138 bounds_origin, .FALSE., values_int32_1d=out_buf_i, return_value=return_value) 1128 1139 ELSE 1129 CALL netcdf4_write_variable('parallel', file_id, fix_variables(i)%var_id, bounds_start, value_counts, bounds_origin,&1130 .FALSE., values_real32_1d=out_buf_r, return_value=return_value)1131 END 1140 CALL netcdf4_write_variable('parallel', file_id, fix_variables(i)%var_id, bounds_start, value_counts, & 1141 bounds_origin, .FALSE., values_real32_1d=out_buf_r, return_value=return_value) 1142 ENDIF 1132 1143 ENDIF 1133 1144 CALL part_io%sm_node_barrier() 1134 END 1145 ENDDO 1135 1146 1136 1147 RETURN
Note: See TracChangeset
for help on using the changeset viewer.