[petsc-users] PCFIELDSPLIT prefix
Smith, Barry F.
bsmith at mcs.anl.gov
Sun Apr 8 11:42:50 CDT 2018
> On Apr 8, 2018, at 11:39 AM, Rossi, Simone <srossi at email.unc.edu> wrote:
>
> Thanks Barry,
> That did it: I only had to specify KSPSetFromOptions() between KSPSetOptionsPrefix() and PCFieldSplitSetIS().
>
> May I ask you how does that work? What do you mean by “depending on where you set the options prefix they may have different results”? I could not find a clear explanation in the documentation.
The KSPSetFromOptions() uses the -current- list of options and -current- values of prefixes (that is what the values are when the KSPSetFromOptions is called). If you change and option or options prefix that change won't effect anything unless you call the KSPSetFromOptions() after the change.
Barry
>
> Thanks again for the help,
> Simone
>
>> On Apr 8, 2018, at 12:24 PM, Smith, Barry F. <bsmith at mcs.anl.gov> wrote:
>>
>> KSPSetFromOptions()
>
More information about the petsc-users
mailing list