<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 4, 2015 at 12:26 PM, <span dir="ltr"><<a href="mailto:Carol.Brickley@awe.co.uk" target="_blank">Carol.Brickley@awe.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I am using DMDAVecGetArrayF90 with a pointer in petsc 3.4.3. Is there anyway of finding out what the start and finish indices of the pointer coming back from this routine are per processor?<br>
<br>
I have declared:<br>
<br>
<br>
DM :: da<br>
Vec :: X<br>
PetscScalar,pointer :: xv(:,:)=>null()<br>
<br>
<br>
DMDAVecGetArrayF90(da,X,xv,ierr)<br>
<br>
<br>
Do j = 1, m<br>
Do i = 1, n<br>
xv(i-1.j-1) = rhs2d(i,j)<br>
enddo<br>
enddo<br>
<br>
<br>
DMDAVecRestoreArrayF90(da,X,xv,ierr)<br>
<br>
When we have xv(0:n-1,0:m-1) from DMDAVecGetArrayF90 it works fine but other processors may give back eg; xv(0:n-1,1:m-1) or something else and it will fail as the second index<br>
now goes below 0 to 1. Any ideas of what I can do next?<br></blockquote><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetCorners.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetCorners.html</a><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetGhostCorners.html#DMDAGetGhostCorners">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetGhostCorners.html#DMDAGetGhostCorners</a><br></div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Carol<br>
<br>
<br>
Dr Carol Brickley<br>
BSc,PhD,ARCS,DIC,MBCS<br>
<br>
Senior Software Engineer<br>
Applied Computer Science<br>
DS+T,<br>
AWE<br>
Aldermaston<br>
Reading<br>
Berkshire<br>
RG7 4PR<br>
<br>
Direct: 0118 9855035<br>
<br>
<br>
<br>
___________________________________________________<br>
____________________________<br>
<br>
The information in this email and in any attachment(s) is<br>
commercial in confidence. If you are not the named addressee(s)<br>
or<br>
if you receive this email in error then any distribution, copying or<br>
use of this communication or the information in it is strictly<br>
prohibited. Please notify us immediately by email at<br>
admin.internet(at)<a href="http://awe.co.uk" target="_blank">awe.co.uk</a>, and then delete this message from<br>
your computer. While attachments are virus checked, AWE plc<br>
does not accept any liability in respect of any virus which is not<br>
detected.<br>
<br>
AWE Plc<br>
Registered in England and Wales<br>
Registration No 02763902<br>
AWE, Aldermaston, Reading, RG7 4PR<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>