Petsc: From grid to "normal" indexing
- From: "maccxs" <m_guetter@xxxxxx>
- Date: 18 Sep 2005 06:58:37 -0700
Hi there!
I have another Petsc question: I am using DACreate3D to access matrix
and vector elements via an i,j,k-gridordering. Now I am trying to solve
the following problem:
I created a matrix
ierr = DAGetMatrix (da,MATSEQAIJ,gridoperator);
setting values with
ierr = MatSetValuesStencil
(*gridoperator,1,&row,7,col,val,INSERT_VALUES);
For a fixed index (i,j,k) I am trying to find out which row and column
I'm in, i.e a mapping (i,j,k)->(row,col) of the matrix.
I'd be grateful for any suggestions and help.
Margrit
.
- Prev by Date: Re: Random points on a sphere- variance
- Next by Date: Re: Random points on a sphere- variance
- Previous by thread: bounds on Raleigh quotient
- Next by thread: Polynomial interpolation
- Index(es):