]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Changing data types for more storage 13617/head
authorSean Ingimarson <singima@clemson.edu>
Wed, 9 Mar 2022 18:20:31 +0000 (13:20 -0500)
committerSean Ingimarson <singima@clemson.edu>
Thu, 14 Apr 2022 20:03:36 +0000 (16:03 -0400)
source/base/data_out_base.cc

index 34c6bad845599495c0b223ff0a25854850f6b5fb..290a0ecc86b09c70ec37a81c4549a780ff0ee543 100644 (file)
@@ -8230,7 +8230,7 @@ DataOutBase::write_hdf5_parallel(
   hid_t pt_data_dataspace, pt_data_dataset, pt_data_file_dataspace,
     pt_data_memory_dataspace;
   herr_t status;
-  unsigned int local_node_cell_count[2];
+  std::uint64_t local_node_cell_count[2];
   hsize_t count[2], offset[2], node_ds_dim[2], cell_ds_dim[2];
   std::vector<double> node_data_vec;
   std::vector<unsigned int> cell_data_vec;
@@ -8264,21 +8264,21 @@ DataOutBase::write_hdf5_parallel(
   // Compute the global total number of nodes/cells and determine the offset of
   // the data for this process
 
-  unsigned int global_node_cell_count[2] = {0, 0};
-  unsigned int global_node_cell_offsets[2] = {0, 0};
+  std::uint64_t global_node_cell_count[2] = {0, 0};
+  std::uint64_t global_node_cell_offsets[2] = {0, 0};
 
 #  ifdef DEAL_II_WITH_MPI
   ierr = MPI_Allreduce(local_node_cell_count,
                        global_node_cell_count,
                        2,
-                       MPI_UNSIGNED,
+                       MPI_UINT64_T,
                        MPI_SUM,
                        comm);
   AssertThrowMPI(ierr);
   ierr = MPI_Exscan(local_node_cell_count,
                     global_node_cell_offsets,
                     2,
-                    MPI_UNSIGNED,
+                    MPI_UINT64_T,
                     MPI_SUM,
                     comm);
   AssertThrowMPI(ierr);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.