]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a variable. Unname another.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 10 Nov 2022 18:56:16 +0000 (11:56 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Nov 2022 04:19:26 +0000 (21:19 -0700)
source/base/data_out_base.cc

index fad78acad2eafaba60386701f6ed895bbba2c5e9..81a24ea264c3581b93356364c6201b7078d3b669 100644 (file)
@@ -8803,9 +8803,11 @@ DataOutBase::write_filtered_data(
     return;
 #endif
 
-  std::tie(n_node, n_cell) = count_nodes_and_cells<dim, spacedim>(patches);
+  unsigned int n_nodes;
+  std::tie(n_nodes, std::ignore) =
+    count_nodes_and_cells<dim, spacedim>(patches);
 
-  data_vectors = Table<2, double>(n_data_sets, n_node);
+  data_vectors = Table<2, double>(n_data_sets, n_nodes);
   void (*fun_ptr)(const std::vector<Patch<dim, spacedim>> &,
                   Table<2, double> &) =
     &DataOutBase::template write_gmv_reorder_data_vectors<dim, spacedim>;

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.