According to 
https://www.dealii.org/developer/doxygen/deal.II/classFE__Bernstein.html#ad881d4e04f5e699e4a8bda5b4e9f5265
 
that is impossible. Would an alternative solution be to interpolate 
everything onto a grid using FE_Q-elements, transfer the result, and 
interpolate the results back?

Am Dienstag, 21. Mai 2019 03:41:58 UTC+2 schrieb Wolfgang Bangerth:
>
> On 5/20/19 5:18 AM, 'Maxi Miller' via deal.II User Group wrote: 
> > Trying to transfer solutions from an old grid to a new grid with 
> > parallel::distributed::SolutionTransfer<dim, 
> TrilinosWrappers::MPI::Vector, 
> > DoFHandler<dim>> solution_transfer() and 
> > solution_transfer.prepare_for_coarsening_and_refinement() fails with 
> > | 
> > Anerror occurred inline <71>of file 
> > <~/Downloads/git-files/dealii/source/fe/fe_bernstein.cc>infunction 
> > 
> constdealii::FullMatrix<double>&dealii::FE_Bernstein<dim,spacedim>::get_restriction_matrix(unsignedint,constdealii::RefinementCase<dim>&)const[withintdim
>  
>
> > =2;intspacedim =2] 
> > Theviolated condition was: 
> > false 
> > Additionalinformation: 
> > Youare trying to access the matrices that describe how to restrict a 
> finite 
> > element functionfromthe children of one cell to the finite element space 
> > definedon their parent (i.e.,the 
> > 'restriction'or'projection'matrices).However,the current finite element 
> can 
> > either notdefine thissort of operation,orit has notyet been implemented. 
> > | 
> > 
> > 
> > Which function do I have to modify to make that work? 
>
> You will have to implement the restriction matrices for the Bernstein 
> element. 
> These are usually set in the constructor of the finite element classes. 
> Take a 
> look at the other FE classes for examples. 
>
> The error you see is simply because you are accessing a field that has 
> never 
> been initialized. 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
>                             www: http://www.math.colostate.edu/~bangerth/ 
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/cdf53472-6b18-4c33-b5a4-513c4025da08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to