]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Cleanups
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 08:36:30 +0000 (08:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 08:36:30 +0000 (08:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@113 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/poisson/poisson.cc
deal.II/deal.II/Todo
tests/big-tests/poisson/poisson.cc

index 03fa5a31ab8f200c63c96349235fb664aa03f713..9755ae893f0fa34e973986aa3cb43bd6b875a58a 100644 (file)
@@ -132,8 +132,8 @@ int main () {
 //  tria.set_boundary (&boundary);
   
   tria.refine_global (1);
-//  (--tria.last_active())->set_refine_flag();
-//  tria.execute_refinement ();
+  (--tria.last_active())->set_refine_flag();
+  tria.execute_refinement ();
 //  tria.begin_active(2)->set_refine_flag();
 //  tria.execute_refinement ();
   tria.refine_global (2);
@@ -170,7 +170,13 @@ int main () {
   cout << dof.n_dofs() << " degrees of freedom." << endl;
 
   cout << "Assembling matrices..." << endl;
-  problem.assemble (equation, quadrature, fe);
+  FEValues<2>::UpdateStruct update_flags;
+  update_flags.update_q_points = true;
+  update_flags.update_gradients = true;
+  update_flags.update_jacobians = true;
+  update_flags.update_JxW_values = true;
+  ProblemBase<2>::DirichletBC d;
+  problem.assemble (equation, quadrature, fe, update_flags, d);
 
   cout << "Solving..." << endl;
   problem.solve ();
index ac4704c4a27886278564beb11240ebf8dbd14a3b..12d948cb6c2cf50ba17742a865fc82d4d8b767eb 100644 (file)
@@ -10,9 +10,6 @@ Rewrite code like
   using the STL count() operation with a member function predicate if
   available.
 
-Change function args of DoFHandler::transfer_cell to
-  cell_iterators when "typename" keyword is available (i.e.
-  if gcc2.8 is available)
 
 Write monitors to control whether enough memory was allocated for
   the vectors (i.e. after a process, whether size()==capacity()).
index 03fa5a31ab8f200c63c96349235fb664aa03f713..9755ae893f0fa34e973986aa3cb43bd6b875a58a 100644 (file)
@@ -132,8 +132,8 @@ int main () {
 //  tria.set_boundary (&boundary);
   
   tria.refine_global (1);
-//  (--tria.last_active())->set_refine_flag();
-//  tria.execute_refinement ();
+  (--tria.last_active())->set_refine_flag();
+  tria.execute_refinement ();
 //  tria.begin_active(2)->set_refine_flag();
 //  tria.execute_refinement ();
   tria.refine_global (2);
@@ -170,7 +170,13 @@ int main () {
   cout << dof.n_dofs() << " degrees of freedom." << endl;
 
   cout << "Assembling matrices..." << endl;
-  problem.assemble (equation, quadrature, fe);
+  FEValues<2>::UpdateStruct update_flags;
+  update_flags.update_q_points = true;
+  update_flags.update_gradients = true;
+  update_flags.update_jacobians = true;
+  update_flags.update_JxW_values = true;
+  ProblemBase<2>::DirichletBC d;
+  problem.assemble (equation, quadrature, fe, update_flags, d);
 
   cout << "Solving..." << endl;
   problem.solve ();

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.