[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SNESSetApplicationContext usage
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: SNESSetApplicationContext usage
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Tue, 25 Mar 2008 21:15:52 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lf9XrHniH0AJ96SSMufRVfEfVt1DiGBwSJG3FOTqh6I=; b=VyIGwmDvNIZlo08Rb7r4VcG3ff2Lv2G8d+KRVqqW0fofaSi94y2bJ2V+eD85a4BOpfy7rWkemhFVEURTTfJ5zuW+3Vk/uPQLECxtYZLV73KSWUhibWAcCzgcjz5niynMEWRe5/RBdg59OO3mIncagHdgRQNzzxycAU8n1J09V0Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kcwRj6VCucwJXxuRs8a9m14R7L7VYrEQ5BWeoo+VA0SJbiKPlV8qEllq3tI3BQjLFlsFuRhw1rr0+KfDEu21GNYNYUKNFCVkwDPk59Og9rUFHe5H5+raPY0rlhDmd6h1k4u6oJyVWjluS6+j8dpWCsTUR5lbKUgALUojahqsyFc=
- In-reply-to: <00ea01c88ee4$520caff0$383010ac@neutron>
- References: <a9f269830803251617m2d9582b4w283ffd0c5315c506@mail.gmail.com> <00ea01c88ee4$520caff0$383010ac@neutron>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
On Tue, Mar 25, 2008 at 8:54 PM, Vijay S. Mahadevan <vijay.m@xxxxxxxxx> wrote:
> Hi,
>
> I am trying to use the SNESSetApplicationContext function to set an object
> as a user application context. This is being done after the SNESSolve was
> already called once on the SNES object, using a NULL application context.
>
> For some reason, after the SNESSetApplicationContext call, the application
> context on SNES is not being set. I am wondering if maybe I need to set some
> flag to tell the SNES object to include this new context in further residual
> and Jacobian calls. I saw the code for the SNESSetApplicationContext
> function and it doesn't look like it but may be I am missing something ?
There is a misunderstanding. The application context is separate from both the
Function context and the Jacobian context. If you want to change these, you
must call SetFunction/Jacobian() again.
Matt
> Thanks for the help.
>
> Vijay
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date: 3/25/2008
> 10:26 AM
>
>
>
--
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