]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some unused variable warnings.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 18:03:23 +0000 (13:03 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 19:09:44 +0000 (14:09 -0500)
include/deal.II/matrix_free/dof_info.templates.h
source/base/index_set.cc
source/lac/sparsity_tools.cc
source/lac/trilinos_vector.cc

index f51570268fc5aaea8a5f71d5b9fd6a229d024ad2..0f0062c3e5c14059bfe72259e60124ebe1050263 100644 (file)
@@ -1347,7 +1347,6 @@ not_connect:
         task_info.partition_color_blocks_row_index.resize(partition+1,0);
         task_info.partition_color_blocks_data.resize(1,0);
 
-        start_up = 0;
         counter = 0;
         unsigned int missing_macros;
         for (unsigned int part=0; part<partition; ++part)
index 306866634c0573d546b853cdd4b39ea2aad5e64a..44d587a467da4b70c47d8164a14ea2caa5ede72a 100644 (file)
@@ -650,11 +650,10 @@ IndexSet::is_ascending_and_one_to_one (const MPI_Comm &communicator) const
   if (my_rank == 0)
     {
       // find out if the received std::vector is ascending
-      types::global_dof_index old_dof = global_dofs[0];
       types::global_dof_index index = 0;
       while (global_dofs[index] == numbers::invalid_dof_index)
         ++index;
-      old_dof = global_dofs[index++];
+      types::global_dof_index old_dof = global_dofs[index++];
       for (; index<global_dofs.size(); ++index)
         {
           const types::global_dof_index new_dof = global_dofs[index];
index 995cdf7a0bc1b615147682ee05b73d9d4a64983a..b461d211f7119c977f2f457a9cf55a336bbd48c9 100644 (file)
@@ -265,19 +265,20 @@ namespace SparsityTools
       int *export_to_part=nullptr;
 
       //call partitioner
-      int rc = zz->LB_Partition (changes,
-                                 num_gid_entries,
-                                 num_lid_entries,
-                                 num_import,
-                                 import_global_ids,
-                                 import_local_ids,
-                                 import_procs,
-                                 import_to_part,
-                                 num_export,
-                                 export_global_ids,
-                                 export_local_ids,
-                                 export_procs,
-                                 export_to_part);
+      const int rc = zz->LB_Partition (changes,
+                                       num_gid_entries,
+                                       num_lid_entries,
+                                       num_import,
+                                       import_global_ids,
+                                       import_local_ids,
+                                       import_procs,
+                                       import_to_part,
+                                       num_export,
+                                       export_global_ids,
+                                       export_local_ids,
+                                       export_procs,
+                                       export_to_part);
+      (void)rc;
 
       //check for error code in partitioner
       Assert( rc == ZOLTAN_OK , ExcInternalError() );
index db03f38913677e74522f6068b0647776ba05fe67..3de292b2169850b1d162e8a3fbfe52e306ead040 100644 (file)
@@ -311,7 +311,6 @@ namespace TrilinosWrappers
         }
 
       TrilinosScalar *entries = (*actual_vec)[0];
-      block_offset = 0;
       for (size_type block=0; block<v.n_blocks(); ++block)
         {
           v.block(block).trilinos_vector().ExtractCopy (entries, 0);

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.