Dear Martin,
Thanks a lot for your help. I tried following your reply but I get this error when I tried to use the reinit function from the MatrixFree class.
I am trying to call the reinit function defined at:
http://www.dealii.org/developer/doxygen/deal.II/classMatrixFree.html#a2e07eda8a73a7ed9f5e1f6ca0ec93959
As a simple case if I just add the following lines of code to step-48 and comment out everything after "make_grid_and_dofs" function in that program.
std::vector<DoFHandler<dim>* > combined_dof_handler;
combined_dof_handler.push_back(&dof_handler);
combined_dof_handler.push_back(&dof_handler);
std::vector<ConstraintMatrix* > combined_constraints;
combined_constraints.push_back(&constraints);
combined_constraints.push_back(&constraints);
matrix_free_data.reinit (combined_dof_handler, combined_constraints,
quadrature, additional_data);
//matrix_free_data.reinit (dof_handler, constraints,
// quadrature, additional_data);
When I do this , I get the error
step-48.cc:500: error: no matching function for call to ‘dealii::MatrixFree<2, double>::reinit(std::vector<dealii::DoFHandler<2, 2>*, std::allocator<dealii::DoFHandler<2, 2>*> >&, std::vector<dealii::ConstraintMatrix*, std::allocator<dealii::ConstraintMatrix*> >&, dealii::QGaussLobatto<1>&, dealii::MatrixFree<2, double>::AdditionalData&)’
I am using deal.ii 7.2.0. Sorry if I am doing a silly mistake somewhere.