Re: [petsc-users] PetscFE questions

2016-10-21 Thread Matthew Knepley
On Fri, Oct 21, 2016 at 2:26 AM, Julian Andrej wrote: > On Thu, Oct 20, 2016 at 5:18 PM, Matthew Knepley > wrote: > > On Thu, Oct 20, 2016 at 9:42 AM, Julian Andrej > wrote: > >> > >> Thanks for the suggestion. I guess DMCreateSubDM

Re: [petsc-users] PetscFE questions

2016-10-21 Thread Julian Andrej
Yeah, thanks for pointing out my mistake. Next time i'm going to think one more time before writing ;) On Fri, Oct 21, 2016 at 12:17 PM, Lawrence Mitchell wrote: > >> On 21 Oct 2016, at 08:26, Julian Andrej wrote: >> >> On Thu, Oct 20, 2016

Re: [petsc-users] PetscFE questions

2016-10-21 Thread Lawrence Mitchell
> On 21 Oct 2016, at 08:26, Julian Andrej wrote: > > On Thu, Oct 20, 2016 at 5:18 PM, Matthew Knepley wrote: >> On Thu, Oct 20, 2016 at 9:42 AM, Julian Andrej wrote: >>> >>> Thanks for the suggestion. I guess DMCreateSubDM can

Re: [petsc-users] PetscFE questions

2016-10-21 Thread Julian Andrej
On Thu, Oct 20, 2016 at 5:18 PM, Matthew Knepley wrote: > On Thu, Oct 20, 2016 at 9:42 AM, Julian Andrej wrote: >> >> Thanks for the suggestion. I guess DMCreateSubDM can work, but is >> cumbersome to handle for the normal solution process since the mass

Re: [petsc-users] PetscFE questions

2016-10-20 Thread Matthew Knepley
On Thu, Oct 20, 2016 at 9:42 AM, Julian Andrej wrote: > Thanks for the suggestion. I guess DMCreateSubDM can work, but is > cumbersome to handle for the normal solution process since the mass > matrix for example is not a seperate field. > I did not understand what you

Re: [petsc-users] PetscFE questions

2016-10-20 Thread Julian Andrej
Thanks for the suggestion. I guess DMCreateSubDM can work, but is cumbersome to handle for the normal solution process since the mass matrix for example is not a seperate field. src/snes/examples/tutorials/ex77 handles a seperate field for the nullspace, if anyone is interested in that. An

Re: [petsc-users] PetscFE questions

2016-10-19 Thread Matthew Knepley
On Tue, Oct 18, 2016 at 7:38 AM, Julian Andrej wrote: > Hi, > > i have general question about PetscFE. When i want to assemble certain > parts of physics separately, how can i do that? I basically want to > assemble matrices/vectors from the weak forms on the same DM (and >

[petsc-users] PetscFE questions

2016-10-18 Thread Julian Andrej
Hi, i have general question about PetscFE. When i want to assemble certain parts of physics separately, how can i do that? I basically want to assemble matrices/vectors from the weak forms on the same DM (and avoid copying the DM) and use them afterwards. Is there a convenient way for doing that?