]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug in tests
authorkainan.wang <kainan.wang@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Apr 2013 22:49:51 +0000 (22:49 +0000)
committerkainan.wang <kainan.wang@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Apr 2013 22:49:51 +0000 (22:49 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29357 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/block_sparsity_pattern_01.cc
tests/trilinos/sparse_matrix_copy_from_01.cc

index abbe4294e7bde077f8843439a243ddccb7eb338b..e650fec536153c9de029a39f346a1ded53f5e57c 100644 (file)
@@ -44,9 +44,9 @@ int main()
   BlockIndices rows(row_blocks);
   BlockIndices cols(col_blocks);
 
-  std::vector<std::vector<types::global_dof_index> >
+  std::vector<std::vector<unsigned int> >
     row_length(cols.size(),
-              std::vector<types::global_dof_index>(rows.total_size()));
+              std::vector<unsigned int>(rows.total_size()));
   for (unsigned int jb=0;jb<row_length.size();++jb)
       for (unsigned int i=0;i<row_length[jb].size();++i)
        {
index 5cd59506542698cb8e056e1230bbca26c37e2eb1..ff79a244e01a1effdbbe2f783793a57e278ae2b9 100644 (file)
@@ -51,7 +51,7 @@ int main (int argc,char **argv)
   matrix.print_formatted (deallog.get_file_stream());
 
   // now copy everything into a Trilinos matrix
-  Epetra_Map map(5,5,0,Utilities::Trilinos::comm_world());
+  Epetra_Map map(TrilinosWrappers::types::int_type(5),5,0,Utilities::Trilinos::comm_world());
   TrilinosWrappers::SparseMatrix tmatrix;
   tmatrix.reinit (map, map, matrix);
 

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.