[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More wierd behaviour from MatIsSymmetric?
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: More wierd behaviour from MatIsSymmetric?
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Wed, 17 Oct 2007 18:20:18 -0500
- Cc: "Toby D. Young" <tyoung@xxxxxxxxxxx>
- 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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qse6wBA6xJOUGgd4ELn9azQHlbl6XJ6n7hMocrtATMY=; b=Y+/rt4O7UPsmOASCf7AsNT9EtN4iYp4Z3pMv8OsAlO+Ju+cmxYgBC/X6Dp5jPNibpG65L0T1WzoKgmBoRgC54h+yKC8PMkE8EZ9g6KgsM7/VtAuGa56MAfHFGRMKz/Pe9wl4sfRJ0I+uo2zg8CYhU6rpbr/W1sIpsMfvAR4dp1M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pRf1N/qADxlbJgO4ID6mef10TNeNaIkHqAZyglai3BOm6Wjbxf0Q8yfl6e4FKZaRzmlMglSp28l2fxVPtraXRWtEjhySURBPxx7IQcke4HTTeFTcyHDbZlIGyaQNeLlUAxkq9miknhb+YYwfif5p1SujLcdlhNMikgAuv1Nd5to=
- In-reply-to: <20071017094921.3dbbf6f1@rav.ippt.gov.pl>
- References: <20071017094921.3dbbf6f1@rav.ippt.gov.pl>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
Is there a reason for not using 2.3.3? I suspect this to be a problem with
finite precision, which is corrected in the newest release.'
Thanks,
Matt
On 10/17/07, Toby D. Young <tyoung@xxxxxxxxxxx> wrote:
>
>
> I am having a little trouble, or confusion, with the MatIsSymmetric
> function. I am getting the reverse behaviour from this routine that I
> expect. I am convinced I have a symmetric matrix, but the answer I get
> from this function is always zero - ie, PetscTruth = PetscFalse.
>
> Why, if PETSC_YES is an alias for PETSC_TRUE, do they have opposite
> behaviour according to the documentation? That doen't seem right. What
> is the idea here?
>
> I there an error in the documentation, or am I misunderstanding
> something? I appreceate your usually helpful remarks!!
>
> For reference, please see:
> http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/include/petsc.h.html#PetscTruth
> Or the notes written below.
>
> Using petsc 2.3.0;
> Best,
> Toby
>
>
> 339: /*MC
> 340: PETSC_TRUE - True value of PetscTruth
>
> 342: Level: beginner
>
> 344: Note: Nonzero integer
>
> 346: .seealso: PetscTruth, PETSC_FALSE
> 347: M*/
>
> 349: /*MC
> 350: PETSC_YES - Alias for PETSC_TRUE
>
> 352: Level: beginner
>
> 354: Note: Zero integer
>
> 356: .seealso: PetscTruth, PETSC_TRUE, PETSC_FALSE, PETSC_NO
> 357: M*/
>
>
> --
>
> Toby D. Young - Adiunkt (Assistant Professor)
> Department of Computational Science
> Institute of Fundamental Technological Research
> Polish Academy of Sciences
> Room 206, Swietokrzyska 21
> 00-049 Warsaw, POLAND
>
>
--
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