Hi, all. 
I have a question on how 'VectorTools::integrate_difference' works 

const MappingQ<dim> mapping (degree);

    

    VectorTools::integrate_difference (mapping, 
dof_handler,solution,Solution<dim>(),

                                       
difference_per_cell,QGauss<dim>(degree+2),VectorTools::L2_norm);


const double L2_error = difference_per_cell.l2_norm();


I use this function, to compare my numerical solution with exact solution 
which is continuous function. 


If I have numerical solution, 

In cell-wise, I have node values of numerical solution at each dof point. 
(Quadrature Point) - I think that dof_handler has all of this information 
already.  

So, I think I don't need to generate new quadrature points to integrate my 
numerical solution. 

In a same way, I think I can use same quadrature points to integrate 
continuous function. 


But the function ask me a input of which guadrature to use to integrate 
this .......I don't understand where do we need this quadrature...

what is the role of 6th argument of this function ? 


QGauss<dim>(degree+2)


Thank you always !


Jaekwang Kim 

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to