]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid error when copying Table<2,bool>.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 5 Apr 2014 06:50:46 +0000 (06:50 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 5 Apr 2014 06:50:46 +0000 (06:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@32716 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_system.cc

index bf072c4a01a7881c2d1a1daef06a074d3cb069a1..78bce6132b9f5429237499fb7e10f29af27e1651 100644 (file)
@@ -3007,8 +3007,9 @@ FESystem<dim,spacedim>::get_constant_modes () const
           Table<2,bool> new_constant_modes(comp+base_table.first.n_rows()*
                                            element_multiplicity,
                                            constant_modes.n_cols());
-          std::copy(&constant_modes(0,0), &constant_modes(0,0)+this->dofs_per_cell*comp,
-                    &new_constant_modes(0,0));
+          for (unsigned int r=0; r<comp; ++r)
+            for (unsigned int c=0; c<this->dofs_per_cell; ++c)
+              new_constant_modes(r,c) = constant_modes(r,c);
           constant_modes.swap(new_constant_modes);
         }
 

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.