Skip to content

Commit

Permalink
cam_grid_write_dist_array expects array of dimension sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
peverwhee committed Dec 19, 2024
1 parent 0bcfc85 commit 0748e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/history/cam_hist_file.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1574,11 +1574,11 @@ subroutine config_write_field(this, field, split_file_index, restart, &
if (frank == 1) then
if (trim(field_precision) == 'REAL32') then
call hist_buffer_norm_value(buff_ptr, field_data_r4(:,1))
call cam_grid_write_dist_array(this%hist_files(split_file_index), field_decomp, dim_sizes(1), &
call cam_grid_write_dist_array(this%hist_files(split_file_index), field_decomp, (/dim_sizes(1)/), &
field_shape, field_data_r4(:,1), varid)
else
call hist_buffer_norm_value(buff_ptr, field_data_r8(:,1))
call cam_grid_write_dist_array(this%hist_files(split_file_index), field_decomp, dim_sizes(1), &
call cam_grid_write_dist_array(this%hist_files(split_file_index), field_decomp, (/dim_sizes(1)/), &
field_shape, field_data_r8(:,1), varid)
end if
else
Expand Down

0 comments on commit 0748e03

Please sign in to comment.