Thanks for replying! 

Could you explain more?

I considered mapping degree only when I assemble system... for example. 

template <int dim>

void msurface<dim>::assemble_system ()

{

  const MappingQ<dim> mapping (degree);

  const QGauss<dim>  quadrature_formula(degree+2);



  FEValues<dim> fe_values (mapping, fe, quadrature_formula,

                           update_values    |  update_gradients |

                           update_quadrature_points  |  update_JxW_values);


....



but can I also input a non-default Mapping degree when I use 
Vectortools::integrate_difference function?

I tried as ... but it seems that its not a proper way to use this 
function...?

template <int dim>

void msurface<dim>::evaluate_error()

{

    Vector<float> difference_per_cell (triangulation.n_active_cells());

    

    const MappingQ<dim> mapping (degree);

    

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

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


How can I use non-default Mapping in here? (I wonder specific lines of 
code...)

Thank for giving me a help!


Regards, 

Jaekwang Kim

2016년 11월 1일 화요일 오후 5시 19분 35초 UTC-5, Daniel Arndt 님의 말:
>
> Jaekwang, 
>
> [...]
>>
>>     VectorTools::integrate_difference 
>> (dof_handler,solution,Solution<dim>(),
>>
>>                                        difference_per_cell
>> *,QGauss<dim>(degree+**2**)*,VectorTools::L2_norm);
>>
> somegthing that immediately comes to mind is that you don't use a 
> non-default Mapping in here although your boundary is curved.
> Make sure that you use an appropriate Mapping everywhere!
>
> Best,
> Daniel
>

-- 
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