[petsc-users] Multiple linear solver defined at command line

Marco Cisternino marco.cisternino at optimad.it
Tue Sep 24 06:06:26 CDT 2019


Good morning,
in my code I need to solve 2 linear systems. I would like to use different solvers for the 2 systems and most of all I would like to choose the single solver by flags from command line, is it possible?
I can call PetscInitialize/PetscFinalize multiple times passing PetscInitialize different argc and argv. What happens if I call the second PetscInitiliaze before the first PetscFinalize with different argc and argv? 
Thanks.

Bests,
Marco Cisternino


More information about the petsc-users mailing list