]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test case with 64 bits
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 23 Jan 2014 21:22:40 +0000 (21:22 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 23 Jan 2014 21:22:40 +0000 (21:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@32292 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/chunk_sparse_matrix_16.cc

index f9a99c45f7d07c95e0ed117a780a4fb6170ec884..0f42e2bffbf8db98c446052cade9384d5066fe4b 100644 (file)
@@ -53,11 +53,11 @@ void test (const unsigned int chunk_size)
       Vector<double> src(m.n()), dst(m.m()), dst_ref(m.m());
       for (unsigned int i=0; i<src.size(); ++i)
         src(i) = (double)Testing::rand()/RAND_MAX;
-      std::vector<unsigned int> indices(sp.max_entries_per_row());
+      std::vector<types::global_dof_index> indices(sp.max_entries_per_row());
       std::vector<double> values(sp.max_entries_per_row());
       for (unsigned int i=0; i<m.m(); ++i)
         {
-          unsigned int n_entries = numbers::invalid_unsigned_int;
+          types::global_dof_index n_entries = numbers::invalid_unsigned_int;
           m.extract_row_copy(i, values.size(), n_entries, &indices[0], &values[0]);
           double sum = 0;
           for (unsigned int j=0; j<n_entries; ++j)

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.