On Thu, Feb 17, 2011 at 8:01 AM, El Hombre Frances <span dir="ltr">&lt;<a href="mailto:elhombrefr@hotmail.fr">elhombrefr@hotmail.fr</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
I&#39;m looking for how to get information about the DA of a DMMG finest grid.<br>
I saw that you can access them with<br>
call DMMGGetDA(...<br>
call DAGetInfo(...<br>
but it doesn&#39;t work in the main program, i get this error<br>
0]PETSC ERROR: Invalid argument!<br>
[0]PETSC ERROR: Wrong type of object: Parameter # 1!<br></blockquote><div><br></div><div>1) Always send the COMPLETE error message</div><div><br></div><div>2) That should work. Notice that we use that on line 75</div><div>
<br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I tried with this example<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/ksp/ksp/examples/tutorials/ex22f.F.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/ksp/ksp/examples/tutorials/ex22f.F.html</a><br>

<br>
I don&#39;t know how to get DA infos outside the subroutines ComputeRHS and ComputeJacobian<br>
<br>
I want grid size of the DA 3D in order to plot the field. I noticed that it&#39;s possible with PetscObjectQuery in C language.<br>
<br>
Thanks for your help<br>
<br>
Pierre Navaro<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>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<br>