]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix use of AnyData in MeshWorker::Assembler 3884/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 31 Jan 2017 17:04:59 +0000 (18:04 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 31 Jan 2017 17:05:41 +0000 (18:05 +0100)
include/deal.II/meshworker/assembler.h

index b791416d5e17ccb1537b07810380c44b55b707c8..7aa44079b8f582dd91167e3850c51eece0d91c2d 100644 (file)
@@ -549,7 +549,7 @@ namespace MeshWorker
     (const DOFINFO &info)
     {
       for (unsigned int i=0; i<residuals.size(); ++i)
-        assemble(*residuals(i), info.vector(i), info.indices);
+        assemble(*(residuals.entry<VectorType>(i)), info.vector(i), info.indices);
     }
 
 
@@ -562,8 +562,8 @@ namespace MeshWorker
     {
       for (unsigned int i=0; i<residuals.size(); ++i)
         {
-          assemble(*residuals(i), info1.vector(i), info1.indices);
-          assemble(*residuals(i), info2.vector(i), info2.indices);
+          assemble(*(residuals.entry<VectorType>(i)), info1.vector(i), info1.indices);
+          assemble(*(residuals.entry<VectorType>(i)), info2.vector(i), info2.indices);
         }
     }
 

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.