[deal.II] number of cells sharing a line

2020-01-23 Thread Nicola Giuliani
Dear all, In my code I need to reconstruct the number of cells sharing an edge. Is there a way to reconstruct this number locally? In principle I would need something like to cell->line(1)->n_sharing_cells()? Bests, Nicola -- The deal.II project is located at http://www.dealii.org/ For

[deal.II] Extract constant modes slow

2020-01-23 Thread Jonathan Russ
Hello - I noticed that the Trilinos ML preconditioner accessed through the TrilinosWrappers benefits heavily from supplying the constant modes or the null-space of the laplace operator. Using the extract_constant_modes functionality I notice that this can take quite a bit of time for a vector

[deal.II] Re: Simple merge_triangulation problem

2020-01-23 Thread Konrad Wiśniewski
Oh! Sorry for bothered you, problem lies somewhere else - this topic can be deleted! -- 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

[deal.II] Re: Simple merge_triangulation problem

2020-01-23 Thread Konrad Wiśniewski
The program is suddenly terminated with exit value -1 so, I guess it is segfault. It is very strange because the program works perfectly fine in case 1), and after I swap coordinates between cell1 and cell2 (to get the case 3) program just stop functioning. W dniu czwartek, 23 stycznia 2020

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-23 Thread Wolfgang Bangerth
On 1/23/20 7:29 AM, 'Maxi Miller' via deal.II User Group wrote: > > Why would you want to project when you can interpolate? That seems > unnecessarily expensive :-) > > I would like to have the input data (which is interpolated) as an additional > component, which then is printed

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-23 Thread 'Maxi Miller' via deal.II User Group
Am Mittwoch, 22. Januar 2020 19:23:52 UTC+1 schrieb Wolfgang Bangerth: > > On 1/22/20 11:17 AM, 'Maxi Miller' via deal.II User Group wrote: > > As source term for calculations I am using data which is written in an > > external matrix (because it has been calculated by an external > >

[deal.II] Re: Simple merge_triangulation problem

2020-01-23 Thread Bruno Turcksin
Konrad, What does it mean you cannot merge the cells? Do you get the wrong results? Does the code segfault? Do you get an error message? Best, Bruno On Thursday, January 23, 2020 at 8:56:34 AM UTC-5, Konrad Wiśniewski wrote: > > Hi all! > > I've encountered a problem with very simple

[deal.II] Simple merge_triangulation problem

2020-01-23 Thread Konrad Wiśniewski
Hi all! I've encountered a problem with very simple two-cells merging in 2D (deal.ii v.9.0.0). Lets say that I have two rectangular cells (for two different material) and I want to merge it together and then refine those cells properly. I don't have a problem with this when I want to merge