template <int dim>
void TestCases<dim>::create_new (const unsigned int) {
- if (tria != 0) delete tria;
if (dof != 0) delete dof;
+ if (tria != 0) delete tria;
tria = new Triangulation<dim>();
tria->create_hypercube();
template <int dim>
void PoissonProblem<dim>::clear () {
- if (tria != 0) { delete tria; tria = 0; };
if (dof != 0) { delete dof; dof = 0; };
+ if (tria != 0) { delete tria; tria = 0; };
if (rhs != 0) { delete rhs; rhs = 0; };
if (solution_function != 0) { delete solution_function; solution_function = 0; };
if (coefficient != 0) { delete coefficient; coefficient = 0; };
template <int dim>
-void PoissonProblem<dim>::clear () {
- if (tria != 0) {
- delete tria;
- tria = 0;
- };
-
+void PoissonProblem<dim>::clear () {
if (dof != 0) {
delete dof;
dof = 0;
};
+ if (tria != 0) {
+ delete tria;
+ tria = 0;
+ };
+
if (rhs != 0)
{
delete rhs;
# the archives ./Obj.a and ./Obj.g.a. By default, the debug version
# is used to link. It you don't like that, change the following
# variable to "off"
-debug-mode = off
+debug-mode = on
# If you want your program to be linked with extra object or library
# files, specify them here:
#if deal_II_dimension == 1
+template <>
void PoissonEquation<1>::assemble (dFMatrix &cell_matrix,
dVector &rhs,
const FEValues<1> &fe_values,
#if deal_II_dimension == 2
+template <>
void PoissonEquation<2>::assemble (dFMatrix &cell_matrix,
dVector &rhs,
const FEValues<2> &fe_values,
template <int dim>
-void PoissonProblem<dim>::clear () {
- if (tria != 0) {
- delete tria;
- tria = 0;
- };
-
+void PoissonProblem<dim>::clear () {
if (dof != 0) {
delete dof;
dof = 0;
};
+ if (tria != 0) {
+ delete tria;
+ tria = 0;
+ };
+
+
if (rhs != 0)
{
delete rhs;
template <int dim>
void TestCases<dim>::create_new (const unsigned int) {
- if (tria != 0) delete tria;
if (dof != 0) delete dof;
+ if (tria != 0) delete tria;
tria = new Triangulation<dim>();
tria->create_hypercube();
template <int dim>
void PoissonProblem<dim>::clear () {
- if (tria != 0) { delete tria; tria = 0; };
if (dof != 0) { delete dof; dof = 0; };
+ if (tria != 0) { delete tria; tria = 0; };
if (rhs != 0) { delete rhs; rhs = 0; };
if (solution_function != 0) { delete solution_function; solution_function = 0; };
if (coefficient != 0) { delete coefficient; coefficient = 0; };
template <int dim>
-void PoissonProblem<dim>::clear () {
- if (tria != 0) {
- delete tria;
- tria = 0;
- };
-
+void PoissonProblem<dim>::clear () {
if (dof != 0) {
delete dof;
dof = 0;
};
+ if (tria != 0) {
+ delete tria;
+ tria = 0;
+ };
+
if (rhs != 0)
{
delete rhs;
# the archives ./Obj.a and ./Obj.g.a. By default, the debug version
# is used to link. It you don't like that, change the following
# variable to "off"
-debug-mode = off
+debug-mode = on
# If you want your program to be linked with extra object or library
# files, specify them here:
#if deal_II_dimension == 1
+template <>
void PoissonEquation<1>::assemble (dFMatrix &cell_matrix,
dVector &rhs,
const FEValues<1> &fe_values,
#if deal_II_dimension == 2
+template <>
void PoissonEquation<2>::assemble (dFMatrix &cell_matrix,
dVector &rhs,
const FEValues<2> &fe_values,
template <int dim>
-void PoissonProblem<dim>::clear () {
- if (tria != 0) {
- delete tria;
- tria = 0;
- };
-
+void PoissonProblem<dim>::clear () {
if (dof != 0) {
delete dof;
dof = 0;
};
+ if (tria != 0) {
+ delete tria;
+ tria = 0;
+ };
+
+
if (rhs != 0)
{
delete rhs;