at the end of the program.
git-svn-id: https://svn.dealii.org/trunk@2061
0785d39b-7218-0410-832d-
ea1e28bc413d
/* Copyright W. Bangerth, University of Heidelberg, 1998 */
+#include <base/logstream.h>
#include <grid/tria.h>
#include <grid/tria_accessor.h>
#include <grid/tria_iterator.h>
class PoissonProblem : public ProblemBase<dim> {
public:
PoissonProblem (unsigned int order);
-
+ ~PoissonProblem ();
+
void clear ();
void create_new ();
int run (unsigned int level);
boundary_values(0), order(order) {};
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem ()
+{
+ clear ();
+};
+
template <int dim>
int main () {
+ deallog.depth_console (0);
for (unsigned int order=0; order<5; ++order)
{
PoissonProblem<2> problem (order);
/* Copyright W. Bangerth, University of Heidelberg, 1998 */
+#include <base/logstream.h>
#include <grid/tria.h>
#include <grid/tria_accessor.h>
#include <grid/tria_iterator.h>
class PoissonProblem : public ProblemBase<dim> {
public:
PoissonProblem (unsigned int order);
-
+ ~PoissonProblem ();
+
void clear ();
void create_new ();
int run (unsigned int level);
boundary_values(0), order(order) {};
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem ()
+{
+ clear ();
+};
+
template <int dim>
int main () {
+ deallog.depth_console (0);
for (unsigned int order=0; order<5; ++order)
{
PoissonProblem<2> problem (order);
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