]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix apply_boundary_values() for PETSc
authorDenis Davydov <davydden@gmail.com>
Sat, 27 Feb 2016 19:07:22 +0000 (20:07 +0100)
committerDenis Davydov <davydden@gmail.com>
Sat, 27 Feb 2016 21:29:09 +0000 (22:29 +0100)
source/numerics/matrix_tools.cc

index 07a54505c5c02e60128aa7d2c832f3a6449d47c3..28f784333dc2580626d8ea1d7ad333ed2082e6f1 100644 (file)
@@ -2399,7 +2399,7 @@ namespace MatrixTools
             // figure out which rows of the matrix we
             // have to eliminate on this processor
             std::vector<types::global_dof_index> constrained_rows;
-            for (std::map<types::global_dof_index,double>::const_iterator
+            for (std::map<types::global_dof_index,PetscScalar>::const_iterator
                  dof  = boundary_values.begin();
                  dof != boundary_values.end();
                  ++dof)
@@ -2422,7 +2422,7 @@ namespace MatrixTools
 
             std::vector<types::global_dof_index> indices;
             std::vector<PetscScalar>  solution_values;
-            for (std::map<types::global_dof_index,double>::const_iterator
+            for (std::map<types::global_dof_index,PetscScalar>::const_iterator
                  dof  = boundary_values.begin();
                  dof != boundary_values.end();
                  ++dof)
@@ -2522,7 +2522,7 @@ namespace MatrixTools
               block++;
             }
           const types::global_dof_index index = dof->first - offset;
-          block_boundary_values[block].insert(std::pair<types::global_dof_index, double> (index,dof->second));
+          block_boundary_values[block].insert(std::pair<types::global_dof_index, PetscScalar> (index,dof->second));
         }
     }
 

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.