[petsc-users] Error using the same ksp with different operator sizes
Matthew Knepley
knepley at gmail.com
Thu May 13 10:23:46 CDT 2010
On Thu, May 13, 2010 at 11:07 AM, Eloy Romero <elroal at upvnet.upv.es> wrote:
> On 05/13/2010 04:41 PM, Matthew Knepley wrote:
>
>
>
>> In my application, a ksp configured by the user is given, and I would like
>> to use that configuration for solving all the linear systems. Creating new
>> ksps and configuring them with KSPSetFromOptions is not a complete solution
>> because the user could modify the ksp by code.
>>
>
> You can replicate all the KSP settings in the new KSP. They are all
> available by the API.
>
> Matt
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
>
> Are you suggesting that I have to call _all_ KSPGet* routines and then the
> corresponding KSPSet* routines in order to copy a ksp object?
>
For any setting which you wish to replicate, yes.
Matt
> Thanks for your time,
>
> Eloy
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100513/993033e0/attachment.htm>
More information about the petsc-users
mailing list