]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Address a number of warnings about unused variables.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 12 Apr 2014 11:43:46 +0000 (11:43 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 12 Apr 2014 11:43:46 +0000 (11:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@32769 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index f4ce58050fc18368c250b22976a35f109bd216d4..39a23d85588df01a8213f1874f3ceed263c9514d 100644 (file)
@@ -7220,20 +7220,17 @@ void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &
   herr_t          status;
   unsigned int    local_node_cell_count[2], global_node_cell_count[2], global_node_cell_offsets[2];
   hsize_t         count[2], offset[2], node_ds_dim[2], cell_ds_dim[2];
-  bool            empty_proc = false;
   std::vector<double>          node_data_vec;
   std::vector<unsigned int>    cell_data_vec;
 
-  if (data_filter.n_nodes() == 0) empty_proc = true;
-
   // If HDF5 is not parallel and we're using multiple processes, abort
 #ifndef H5_HAVE_PARALLEL
-#ifdef DEAL_II_WITH_MPI
+#  ifdef DEAL_II_WITH_MPI
   int world_size;
   MPI_Comm_size(comm, &world_size);
   AssertThrow (world_size <= 1,
                ExcMessage ("Serial HDF5 output on multiple processes is not yet supported."));
-#endif
+#  endif
 #endif
 
   local_node_cell_count[0] = data_filter.n_nodes();
@@ -7390,7 +7387,7 @@ void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &
   // all vector data, then handle the
   // scalar data sets that have been
   // left over
-  unsigned int    i, n, q, r, pt_data_vector_dim;
+  unsigned int    i, pt_data_vector_dim;
   std::string     vector_name;
   for (i=0; i<data_filter.n_data_sets(); ++i)
     {

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.