Vector<double> l2_error_per_dof, linfty_error_per_dof;
Vector<double> h1_error_per_dof, estimated_error_per_dof;
- Vector<double> error_ratio;
+ Vector<double> error_ratio (dof->n_dofs());
dof->distribute_cell_to_dof_vector (l2_error_per_cell, l2_error_per_dof);
dof->distribute_cell_to_dof_vector (linfty_error_per_cell,
linfty_error_per_dof);
print_history (prm, refine_mode);
cout << endl << endl << endl;
+ dof->clear ();
delete equation;
};
Vector<double> l2_error_per_dof, linfty_error_per_dof;
Vector<double> h1_error_per_dof, estimated_error_per_dof;
- Vector<double> error_ratio;
+ Vector<double> error_ratio (dof->n_dofs());
dof->distribute_cell_to_dof_vector (l2_error_per_cell, l2_error_per_dof);
dof->distribute_cell_to_dof_vector (linfty_error_per_cell,
linfty_error_per_dof);
print_history (prm, refine_mode);
cout << endl << endl << endl;
+ dof->clear ();
delete equation;
};
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