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: bange...@colostate.edu 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/e41a5d3e-8f12-b1a6-e24e-69ca6fc3e692%40colostate.edu. For more options, visit https://groups.google.com/d/optout.