[petsc-users] How to access the value uarray[j+2][i]

Feng-Chao Wang wolfshow at gmail.com
Wed Dec 21 08:19:19 CST 2011


Sorry, I didn't think about the stencil width.

Now, the program can run on multi-processors.

Thank you very much, Jed.

Feng-Chao Wang
------------------------------

Message: 6
Date: Wed, 21 Dec 2011 06:39:27 -0600
From: Jed Brown <jedbrown at mcs.anl.gov>
Subject: Re: [petsc-users] How to access the value uarray[j+2][i]
To: PETSc users list <petsc-users at mcs.anl.gov>
Message-ID:
	<CAM9tzSnSAv+VryZ0+Ph1jYjdRMJ9Pq1HtmjJyo5a_WqJVnefTw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Wed, Dec 21, 2011 at 01:04, Fatcharm <wolfshow at gmail.com> wrote:

> I am wondering, why the above sentence "uxxx=..." can access
> "uarray[j][i+2] " succesfully, while the program reports error when
> accessing "uarray[j+2][i]" ?
>

Did you set the stencil width to 2 or larger?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111221/a28ed4a9/attachment-0001.htm>

------------------------------



More information about the petsc-users mailing list