<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 25, 2014 at 5:37 PM, Adrian Croucher <span dir="ltr"><<a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</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">It looks like the fortran interface to DMViewFromOptions() is missing- on linking, I get an error "undefined reference to `dmviewfromoptions_'".<br>

<br>
If that's the case, is there any chance an interface could be added?<br></blockquote><div><br></div><div>Its a little weird. The function is defined by</div><div><br></div><div>  PETSC_STATIC_INLINE PetscErrorCode DMViewFromOptions(DM A,const char prefix[],const char name[]) {return PetscObjectViewFromOptions((PetscObject)A,prefix,name);}</div>
<div><br></div><div>so I think it might be better to just call the PetscObject version from Fortran.</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">

Or alternatively, is there any other way of viewing a DMPlex that's been distributed using DMPlexDistribute()? DMView just seems to give me the cell counts as if the DMPlex was still all on rank 0. There doesn't seem to be anything in the docs about DMViewFromOptions() yet, so I'm just guessing what it's for from the examples.<br>
</blockquote><div><br></div><div>No, there is another problem here. DMViewFromOptions() just calls DMView(). Are you sure the viewer was using PETSC_COMM_WORLD?</div><div><br></div><div>Can you run an example, like SNES ex12, and give -dm_view in parallel?</div>
<div><br></div><div>  Thanks,</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">

Thanks!<br>
<br>
Cheers, Adrian<span class=""><font color="#888888"><br>
<br>
-- <br>
Dr Adrian Croucher<br>
Department of Engineering Science<br>
University of Auckland<br>
New Zealand<br>
tel 64-9-373-7599 ext 84611<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <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
</div></div>