I can not use that function, else I will get An error occurred in line <3543> of file </opt/dealii/include/deal.II/grid/tria_accessor.templates.h> in function bool dealii::CellAccessor<dim, spacedim>::is_locally_owned() const [with int dim = 2; int spacedim = 2] The violated condition was: this->active() Additional information: is_locally_owned() can only be called on active cells!
In my multigrid-assembly-function I have to loop over all cells, not only the currently active cells (as it is stated in example 50: *we don't just loop over all active cells, but in fact all cells, active or not*). Thus I end up in that function. Am Freitag, 19. Juli 2019 17:37:01 UTC+2 schrieb Wolfgang Bangerth: > > On 7/19/19 9:31 AM, 'Maxi Miller' via deal.II User Group wrote: > > Based on the stacktrace the problematic access happens within > mg_cell_worker(): > > ... > > which is guarded by the if-condition. > > Then we have a miracle :-) You'll have to check in a debugger how you got > into > this place. If you go up to frame #8 (assemble_multigrid) you should be > able > why the function mg_cell_worker() was called and what the condition is > that > you checked/wanted to check. > > BTW, I typically use > cell->is_locally_owned() > in place of the more complicated condition you use. > > 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/d78faba2-5bf4-4c49-a40b-a46eb7d1eb76%40googlegroups.com.