[petsc-users] Command Line
Stefano Zampini
stefano.zampini at gmail.com
Mon Jul 31 04:40:05 CDT 2017
You can do it with the command line option "-options_left 0"
2017-07-31 12:27 GMT+03:00 Guido Giuntoli <giuntoli1991 at gmail.com>:
> 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.
>
--
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170731/4110997b/attachment.html>
More information about the petsc-users
mailing list