// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2015 by the deal.II authors
+// Copyright (C) 1998 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
check_element (tr, *fe_list[i]);
}
}
+
+
+ for (unsigned int i=0; i<sizeof(fe_list)/sizeof(fe_list[0]); ++i)
+ if (fe_list[i] != 0)
+ delete fe_list[i];
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2008 - 2015 by the deal.II authors
+// Copyright (C) 2008 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
for (unsigned int i=0; i<sz; ++i)
AssertThrow (p[i] == 0, ExcInternalError());
+
+ delete[] p;
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2006 - 2015 by the deal.II authors
+// Copyright (C) 2006 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
AssertThrow (values[i] == cell->index() % 128, ExcInternalError());
}
}
+
+ for (typename std::map<types::material_id, const Function<dim>*>::iterator
+ p = functions.begin();
+ p != functions.end(); ++p)
+ delete p->second;
+
deallog << "OK" << std::endl;
}
/* ---------------------------------------------------------------------
* $Id$
*
- * Copyright (C) 1999 - 2015 by the deal.II authors
+ * Copyright (C) 1999 - 2016 by the deal.II authors
*
* This file is part of the deal.II library.
*
{
// {
// FiniteElement<2> *fe = new FE_Q<2>(degree);
-// Step3<2> laplace_problem(fe, degree);
-// laplace_problem.run();
+// {
+// Step3<2> laplace_problem(fe, degree);
+// laplace_problem.run();
+// }
+// delete fe;
// }
{
FiniteElement<2> *fe = new FE_Q_Bubbles<2>(degree);
- Step3<2> laplace_problem(fe, degree);
- laplace_problem.run();
+ {
+ Step3<2> laplace_problem(fe, degree);
+ laplace_problem.run();
+ }
+ delete fe;
}
// {
// FiniteElement<3> *fe = new FE_Q<3>(degree);
-// Step3<3> laplace_problem(fe, degree);
-// laplace_problem.run();
+// {
+// Step3<3> laplace_problem(fe, degree);
+// laplace_problem.run();
+// }
+// delete fe;
// }
{
FiniteElement<3> *fe = new FE_Q_Bubbles<3>(degree);
- Step3<3> laplace_problem(fe, degree);
- laplace_problem.run();
+ {
+ Step3<3> laplace_problem(fe, degree);
+ laplace_problem.run();
+ }
+ delete fe;
}
}
return 0;
// ---------------------------------------------------------------------
//
-// Copyright (C) 2006 - 2015 by the deal.II authors
+// Copyright (C) 2006 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
<< '\t' << fe->dofs_per_quad
<< '\t' << fe->dofs_per_hex
<< std::endl;
+
+ delete fe;
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2013 - 2015 by the deal.II authors
+// Copyright (C) 2013 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
deallog << dim << "d, uniform grid, fe #" << i;
check_element (tr, *fe_list[i]);
}
+
+
+ for (unsigned int i=0; i<sizeof(fe_list)/sizeof(fe_list[0]); ++i)
+ if (fe_list[i] != 0)
+ delete fe_list[i];
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2013 - 2015 by the deal.II authors
+// Copyright (C) 2013 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
check (1, *maps[m], *elements[e], gauss);
// check (2, *maps[m], *elements[e], gauss);
}
+
+ for (unsigned int m=0; m<maps.size(); ++m)
+ delete maps[m];
+
+ for (unsigned int e=0; e<elements.size(); ++e)
+ delete elements[e];
}