]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
bugfix create_boundary_right_hand_side
authorgerecht <gerecht@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Jul 2011 15:07:03 +0000 (15:07 +0000)
committergerecht <gerecht@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Jul 2011 15:07:03 +0000 (15:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@23953 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/include/deal.II/numerics/vectors.templates.h

index 9eaec5290e4aa6887355246cf33d13957f374409..f20f766e909c30bf3ec2725ff4f972cc688db932 100644 (file)
@@ -65,6 +65,11 @@ changed to use std_cxx1x::_1, std_cxx1x::_2, etc from now on.
 <h3>General</h3>
 
 <ol>
+<li> Fixed: The function VectorTools::create_right_hand_side now also works for objects of type hp::DoFHandler with different finite elements.
+<br>
+(Daniel Gerecht, 2011/07/20)
+
+
 <li> Fixed: deal.II can link with Trilinos but previously it required a
 very specific set of Trilinos sub-libraries; if Trilinos had been compiled
 with a larger set of sub-libraries, linking would sometimes fail. This
index 1e6472b25b647c7810889b750db418c4a6df23b4..8c06e646370f3f6119654f1232c346752be9ccca 100644 (file)
@@ -1154,6 +1154,7 @@ VectorTools::create_boundary_right_hand_side (const hp::MappingCollection<dim,sp
                                    fe_values.shape_value(i,point) *
                                    weights[point];
 
+             dofs.resize(dofs_per_cell);
              cell->get_dof_indices (dofs);
 
              for (unsigned int i=0; i<dofs_per_cell; ++i)
@@ -1215,7 +1216,7 @@ VectorTools::create_boundary_right_hand_side (const hp::MappingCollection<dim,sp
                              weights[point];
                          }
                }
-
+             dofs.resize(dofs_per_cell);
              cell->get_dof_indices (dofs);
 
              for (unsigned int i=0; i<dofs_per_cell; ++i)

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.