I've known at least one other person that had this very same confusion. Maybe it's worth adding Barry's explanation to the manual page:
This function can be called BEFORE PetscInitialize(), but it does not NEED to be called before PetscInitialize(). You should be able to call PetscOptionsSetValue() anytime you want. On Mon, 2022-02-28 at 16:39 -0800, Sam Guo wrote: > Yes, " This function can be called BEFORE PetscInitialize()" confused > me. Thanks for the clarification. > > On Mon, Feb 28, 2022 at 4:38 PM Barry Smith <[email protected]> wrote: > > > > You should be able to call PetscOptionsSetValue() anytime you > > want, as I said between different uses of MUMPS you can call it to > > use different directories. > > > > Perhaps this confused you? > > > > Note: > > This function can be called BEFORE PetscInitialize() > > > > It is one of the very few functions that can be called before > > PetscInitialize() but it does not NEED to be called before > > PetscInitialize(). > > > > Barry
