]> https://gitweb.dealii.org/ - dealii.git/commitdiff
64bit compatiblity
authorTimo Heister <timo.heister@gmail.com>
Wed, 21 Oct 2015 14:52:12 +0000 (10:52 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 21 Oct 2015 14:52:12 +0000 (10:52 -0400)
source/multigrid/mg_transfer_prebuilt.cc

index e2d5a8dc962f9fd0a5c4659340b73074fd64cce5..45ad2c84d2007e293c9233eb48fa954f58da64ed 100644 (file)
@@ -288,10 +288,12 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
   struct dof_pair
   {
     unsigned int level;
-    unsigned int global_dof_index;
-    unsigned int level_dof_index;
+    types::global_dof_index global_dof_index;
+    types::global_dof_index level_dof_index;
 
-    dof_pair(unsigned int level, unsigned int global_dof_index, unsigned int level_dof_index)
+    dof_pair(unsigned int level,
+             types::global_dof_index global_dof_index,
+             types::global_dof_index level_dof_index)
       :
       level(level), global_dof_index(global_dof_index), level_dof_index(level_dof_index)
     {}
@@ -344,7 +346,7 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
               if (mg_constrained_dofs != 0
                   && mg_constrained_dofs->at_refinement_edge(level, level_dof_indices[i]))
                 continue;
-              unsigned int global_idx = globally_relevant.index_within_set(global_dof_indices[i]);
+              types::global_dof_index global_idx = globally_relevant.index_within_set(global_dof_indices[i]);
               //skip if we did this global dof already (on this or a coarser level)
               if (dof_touched[global_idx])
                 continue;
@@ -445,7 +447,7 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
             for (unsigned int i=0; i<receive.size(); ++i)
               {
                 copy_indices_level_mine[receive[i].level].push_back(
-                  std::pair<unsigned int, unsigned int> (receive[i].global_dof_index, receive[i].level_dof_index)
+                  std::make_pair (receive[i].global_dof_index, receive[i].level_dof_index)
                 );
               }
           }

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.