]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a problem with locks/subscriptors which prevented the example from running.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 1998 13:21:18 +0000 (13:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 1998 13:21:18 +0000 (13:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@673 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/convergence/convergence.cc
deal.II/deal.II/Attic/examples/poisson/problem.cc
tests/big-tests/convergence/convergence.cc
tests/big-tests/poisson/problem.cc

index b5c91be41be7fa1685afc2ad41a878a40c39ec8d..e60e21f164ccdfbf6ebf52e6983bdf7e5f59cc10 100644 (file)
@@ -209,6 +209,11 @@ void PoissonProblem<dim>::clear () {
     dof = 0;
   };
 
+                                  // make it known to the underlying
+                                  // ProblemBase that tria and dof
+                                  // are already deleted
+  set_tria_and_dof (tria, dof);
+
   if (rhs != 0) 
     {
       delete rhs;
index e24b5d1affdd67505fdb0c8e03c4fb18aaa2d6a8..c68381138514e673d81a45b9b25d3b1557e3dc98 100644 (file)
@@ -174,6 +174,11 @@ void PoissonProblem<dim>::clear () {
     tria = 0;
   };
 
+                                  // make it known to the underlying
+                                  // ProblemBase that tria and dof
+                                  // are already deleted
+  set_tria_and_dof (tria, dof);
+
 
   if (rhs != 0) 
     {
@@ -479,6 +484,10 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   out.write_gnuplot (gnuplot);
   gnuplot.close ();
 
+                                  // release the lock of the DoF object to
+                                  // the FE object
+  dof->clear ();
+  
   cout << endl;
 };
 
index b5c91be41be7fa1685afc2ad41a878a40c39ec8d..e60e21f164ccdfbf6ebf52e6983bdf7e5f59cc10 100644 (file)
@@ -209,6 +209,11 @@ void PoissonProblem<dim>::clear () {
     dof = 0;
   };
 
+                                  // make it known to the underlying
+                                  // ProblemBase that tria and dof
+                                  // are already deleted
+  set_tria_and_dof (tria, dof);
+
   if (rhs != 0) 
     {
       delete rhs;
index e24b5d1affdd67505fdb0c8e03c4fb18aaa2d6a8..c68381138514e673d81a45b9b25d3b1557e3dc98 100644 (file)
@@ -174,6 +174,11 @@ void PoissonProblem<dim>::clear () {
     tria = 0;
   };
 
+                                  // make it known to the underlying
+                                  // ProblemBase that tria and dof
+                                  // are already deleted
+  set_tria_and_dof (tria, dof);
+
 
   if (rhs != 0) 
     {
@@ -479,6 +484,10 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   out.write_gnuplot (gnuplot);
   gnuplot.close ();
 
+                                  // release the lock of the DoF object to
+                                  // the FE object
+  dof->clear ();
+  
   cout << endl;
 };
 

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.