<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 7, 2017 at 5:12 AM, Lukas van de Wiel <span dir="ltr"><<a href="mailto:lukas.drinkt.thee@gmail.com" target="_blank">lukas.drinkt.thee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear fellow PETSc users,<br>
<br>
I have been using PETSc for several years now, but I notice that after<br>
every upgrade I have to make changes to include/finclude/petscsysdef.h<br>
to get my Fortran code to work with it (or, in 3.7.5<br>
include/petsc/finclude/<wbr>petscsysdef.h)<br></blockquote><div><br></div><div>We will definitely fix this. However, the entire Fortran interface has been rewritten to make it simpler,</div><div>and allow using all the features os F90. Please see the bottom of <a href="http://www.mcs.anl.gov/petsc/documentation/changes/dev.html">http://www.mcs.anl.gov/petsc/documentation/changes/dev.html</a></div><div><br></div><div>Would you be able to try out the master branch of PETSc development (instructions here <a href="http://www.mcs.anl.gov/petsc/developers/index.html">http://www.mcs.anl.gov/petsc/developers/index.html</a>)?</div><div>This would let us know if the bug is still there.</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:1px solid rgb(204,204,204);padding-left:1ex">
I have been running 3.4.2 for a few years, and PetscReal and<br>
PetscScalar were never defined, apparently because no<br>
PETSC_USE_REAL_[TYPE] was never defined.<br>
<br>
In 3.7.5 I have the same problem, and it also affects<br>
PetscFortranComplex which also depends on PETSC_USE_REAL_[TYPE].<br>
<br>
However, my configure.log nicely shows:<br>
<br>
#ifndef PETSC_USE_REAL_DOUBLE<br>
#define PETSC_USE_REAL_DOUBLE 1<br>
#endif<br>
<br>
It seems that changing petscsysdef.h is not the proper solution. Is<br>
there a more elegant way for me to fix this?<br>
<br>
Thanks for your expertise,<br>
Lukas<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>