On 8/19/19 8:52 PM, 2leng liu wrote: > I'm using the *ContinuousQuadratureDataTransfer* class for physical state and > property data transfer. when i use it , i found a problem: > in the *ContinuousQuadratureDataTransfer*, the *unpack_function* said we > can't > deal with the cells with > parallel::distributed::Triangulation<dim,dim>::CELL_COARSEN > <classparallel_1_1distributed_1_1Triangulation.html>, it's said to be invalid > or no need to be implemented. > but pointer to *unpack_function* is used by DataTransfer class in the > *unpack_data* function, which will transfer the unwanted formal parameter in > the case of CELL_COARSEN , contradictory to the implementation in > *ContinuousQuadratureDataTransfer* > * > * > I notice that , in the *unpack_function* , deal with the CELL_REFINE case > because of the test of *has_children()*, which worked for mesh refinement and > transfer the data from parent cell to the children cell > is it necessary to do the counterpart for the cell with CELL_COARSEN flag, > that transfer the data from chidren cell to the parent cell ,and implemented > in the *pack_function *?
2leng liu, I don't actually know the class well, but what would greatly help is if you could come up with a simple testcase that shows the error. The testcase doesn't have to do anything useful -- in essence, all that's necessary is to create a mesh, a ContinuousQuadratureDataTransfer object, and whatever else you need to demonstrate the problem, and then call the refinement/coarsening function that ultimately leads to the error you quote. Typically such programs can be constructed with 30 or 40 lines of code at most. It is almost always easier to debug problems if one has a small testcase. The testcase itself can then also be added to the test suite to make sure that this problem does not resurface at a later time, and that the functionality that exists today continues to work in the future. Do you think you could come up with such a program? Best Wolfgang -- ------------------------------------------------------------------------ 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/7ad36d35-54e6-cdbc-61d7-2489198ba12e%40colostate.edu.