Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Adriano Côrtes
2017-04-06 17:53 GMT-03:00 Roy Stogner : > > > On Thu, 6 Apr 2017, Adriano Côrtes wrote: > > Let me see if I got it right? So if I have two system in my >> equation_system, let me say one called "flow" (with variables >> {u,v,w,p}) and another called "transport" (with variable {phi}), >> then if I

Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Roy Stogner
On Thu, 6 Apr 2017, Adriano Côrtes wrote: Let me see if I got it right? So if I have two system in my equation_system, let me say one called "flow" (with variables {u,v,w,p}) and another called "transport" (with variable {phi}), then if I call  --solver_system_names --solver_variable_names --

Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Roy Stogner
On Thu, 6 Apr 2017, Adriano Côrtes wrote: It's me again. Checking the code I realised that this command line option "--solver_system_names", also appears in the petsc_auto_fieldsplit.C Is there a command line option also to setup (automatically) the PCFIELDSPLIT such that I can use physics b

Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Adriano Côrtes
Dear Roy, It's me again. Checking the code I realised that this command line option "--solver_system_names", also appears in the petsc_auto_fieldsplit.C Is there a command line option also to setup (automatically) the PCFIELDSPLIT such that I can use physics based preconditioners, like Least Squar

Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Adriano Côrtes
Dear Roy, Thank you for your promptly reply to my question. Yes, your solution worked properly, this is what I wanted. A. 2017-04-06 12:02 GMT-03:00 Roy Stogner : > > On Thu, 6 Apr 2017, Adriano Côrtes wrote: > > TransientLinearImplicitSystem & flow_system = >> this->es.add_system ("flow"); >>

Re: [Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Roy Stogner
On Thu, 6 Apr 2017, Adriano Côrtes wrote: TransientLinearImplicitSystem & flow_system = this->es.add_system ("flow"); but if I am using PETSc this name is not used to set the KSP Prefix name, even though the PetscLinearSolver init methods have the name parameter. My question is how do I setup

[Libmesh-users] How to setup prefix name in of a Petsc Linear Solver

2017-04-06 Thread Adriano Côrtes
Dear all, When we create add a system to an Equation System object we use for example TransientLinearImplicitSystem & flow_system = this->es.add_system ("flow"); but if I am using PETSc this name is not used to set the KSP Prefix name, even though the PetscLinearSolver init methods have the name