]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix some warnings
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Apr 2013 23:30:37 +0000 (23:30 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Apr 2013 23:30:37 +0000 (23:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29137 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/index_set.h
deal.II/include/deal.II/dofs/dof_accessor.templates.h
deal.II/source/lac/trilinos_sparsity_pattern.cc

index 9a4a09006c9e6d0cf4ba05a3d562be2e1b742aa2..f382b0dbe190e13f692af242e326ca3c21592fbc 100644 (file)
@@ -1007,7 +1007,7 @@ IndexSet::fill_binary_vector (Vector &vector) const
   for (std::vector<Range>::iterator it = ranges.begin();
        it != ranges.end();
        ++it)
-    for (unsigned int i=it->begin; i<it->end; ++i)
+    for (types::global_dof_index i=it->begin; i<it->end; ++i)
       vector[i] = 1;
 }
 
index 45a8ec9a70f410e61d23c51baae634a273e5945d..7167e97d0da202184449efaadb27683f80a6ba66 100644 (file)
@@ -1175,7 +1175,8 @@ namespace internal
                 return;
               }
             else
-              pointer += (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1;
+              pointer += static_cast<types::global_dof_index>(
+               (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1);
           }
       }
 
@@ -1263,7 +1264,8 @@ namespace internal
             if (this_fe_index == fe_index)
               return *(pointer + 1 + local_index);
             else
-              pointer += (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1;
+              pointer += static_cast<types::global_dof_index>(
+               (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1);
           }
       }
 
@@ -1308,7 +1310,8 @@ namespace internal
               return counter;
             else
               {
-                pointer += (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1;
+                pointer += static_cast<types::global_dof_index>(
+                 (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1);
                 ++counter;
               }
           }
@@ -1366,7 +1369,8 @@ namespace internal
             Assert (this_fe_index != numbers::invalid_dof_index,
                     ExcInternalError());
 
-            pointer += (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1;
+            pointer += static_cast<types::global_dof_index>(
+             (*dof_handler.finite_elements)[this_fe_index].dofs_per_vertex + 1);
             ++counter;
           }
       }
index d7764cf93948ef26353a95989ab0dabb8af07917..3ad787252704df38e53e8b9497371d9b4107724d 100644 (file)
@@ -418,8 +418,10 @@ namespace TrilinosWrappers
       last_row = max_my_gid(input_row_map)+1;
     std::vector<int> n_entries_per_row(last_row - first_row);
 
+                                    // Trilinos wants the row length as an int
+                                    // this is hopefully never going to be a problem.
     for (size_type row=first_row; row<last_row; ++row)
-      n_entries_per_row[row-first_row] = sp.row_length(row);
+      n_entries_per_row[row-first_row] = static_cast<int>(sp.row_length(row));
 
     if (input_row_map.Comm().NumProc() > 1)
       graph.reset(new Epetra_FECrsGraph(Copy, input_row_map,

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.