[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread bob bill
Thanks a lot Marc, now it compiles. Without your help it wouldn't have been possible. Best, Bob Il giorno martedì 30 novembre 2021 alle 23:37:36 UTC+1 mafe...@gmail.com ha scritto: > You can convert your Triangulation::cell_iterators into a > DoFHandler::cell_iterators. An example is shown he

[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread Marc Fehling
You can convert your Triangulation::cell_iterators into a DoFHandler::cell_iterators. An example is shown here . Marc On Tuesday, November 30, 2021 at 3:30:49 PM UT

[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread bob bill
Thanks Marc for your answer. I should have given more context, as maybe in this particular case things can be simpler. I'm using compute_point_locations() and so in my code I have: *aut

[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread Marc Fehling
Hi Bob, you should be able to create a `DoFAccessor` iterator object with your index in some way, and then call this particular function. Or you can iterate over all active cells, and then check for their index and store the corresponding dof indices in some container. In general, I would advi

[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread bob bill
Hi Marc, there's a problem: that function assumes that you do the usual cell->get_dof_indices(local_to_global); In my case, I only have the integer number associated to that cell, say 80, and I wanna know what are the DoFs associated to cell number 80 of my triangulation. If it's not clear, I

[deal.II] Re: Obtain degrees of freedom starting from the cell

2021-11-30 Thread Marc Fehling
Hello Bob, I think the function DoFAccessor::get_dof_indices() is the one you are looking for. Its use is demonstrated in multiple tutorial programs, e.g. step-4