Hi, I have a program with the following structure

...
PETSC_COMM_WORLD = WORLD_COMM;
ierr = PetscInitialize(&argc,&argv,(char*)0,help);
ierr = PetscOptionsGetBool(NULL, NULL, "-flag", &flag, &set); CHKERRQ(ierr);
...
ierr = PetscFinalize();
PETSC_COMM_WORLD = ANOTHER_COMM;
ierr = PetscInitialize(&argc,&argv,(char*)0,help);
...
ierr = PetscFinalize();
...

The problem I want to avoid is PETSc to print

"WARNING! There are options you set that were not used!"

In the first part I use some options of the command line and in the second
I am going to use others like the -ksp_xxxx. Which is the good way of
avoiding that without touching petsc code ?

Thanks, Guido.

Reply via email to