<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 8, 2014 at 4:00 AM, John O'Sullivan <span dir="ltr"><<a href="mailto:jp.osullivan@auckland.ac.nz" target="_blank">jp.osullivan@auckland.ac.nz</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,<br>
<br>
I'm working with Adrian on our PetSc project at the University of Auckland. I think I've found a couple more fortran interfaces that are missing:<br>
<br>
DMPlexGetFaceFields<br>
DMPlexGefFaceGeometry<br>
<br>
I get the error:<br>
<br>
<font><span style="font-size:10pt">Undefined symbols for architecture x86_64:<br>
  "_dmplexgetfacefields_", referenced from:<br>
      _rhs_darcy_local.2542 in darcy.o<br>
  "_dmplexgetfacegeometry_", referenced from:<br>
      _rhs_darcy_local.2542 in darcy.o<br>
<br>
I haven't got to the restore stage yet but I think probably these ones are missing too:<br>
<br>
DMPlexRestoreFaceFields<br>
DMPlexRestoreFaceGeometry<br>
<br>
Also I'm having trouble declaring a pointer to a PetscFVFaceGeom type to use with the DMPlexGetFaceGeometry. Is there a trick to this or maybe its definition in fortran is missing too?<br></span></font></div></div></blockquote><div><br></div><div>Sorry, this is a really bad time of year for me with family and work travel. I can put in the Fortran bindings this week I think.</div><div>I do not know how to handle structs in Fortran (will ask Fortran gurus). Right now, I am just going to make a PetscScalar</div><div>array with one more dimension since the struct is a bunch of Scalars, and you will have to index into it treating the struct</div><div>as another dim.</div><div><br></div><div>  Thanks,</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"><div><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><font><span style="font-size:10pt">
Thanks very much!<br>
<br>
Cheers<br>
John</span></font><br>
<pre><i>--
</i><i>Dr John O'Sullivan
Lecturer
</i><i>Department of Engineering Science
</i><i>University of Auckland, New Zealand
</i><i>email: <a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-dev" target="_blank">jp.osullivan at auckland.ac.nz</a>
</i><i>tel: +64 (0)9 923 85353</i></pre>
<font><span style="font-size:10pt"><br>
</span></font></div>
</div>

</blockquote></div><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>