[petsc-users] Get grid sizes from DMMG finest grid in Fortran
Matthew Knepley
knepley at gmail.com
Thu Feb 17 08:19:46 CST 2011
On Thu, Feb 17, 2011 at 8:01 AM, El Hombre Frances <elhombrefr at hotmail.fr>wrote:
> Hi,
> I'm looking for how to get information about the DA of a DMMG finest grid.
> I saw that you can access them with
> call DMMGGetDA(...
> call DAGetInfo(...
> but it doesn't work in the main program, i get this error
> 0]PETSC ERROR: Invalid argument!
> [0]PETSC ERROR: Wrong type of object: Parameter # 1!
>
1) Always send the COMPLETE error message
2) That should work. Notice that we use that on line 75
Matt
> I tried with this example
>
> http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/ksp/ksp/examples/tutorials/ex22f.F.html
>
> I don't know how to get DA infos outside the subroutines ComputeRHS and
> ComputeJacobian
>
> I want grid size of the DA 3D in order to plot the field. I noticed that
> it's possible with PetscObjectQuery in C language.
>
> Thanks for your help
>
> Pierre Navaro
>
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110217/3d9fd0a3/attachment.htm>
More information about the petsc-users
mailing list