<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Dear All,</div><div>I'm experiencing the difficulties with running the Petsc in Fortran Language, I'm using gfortran </div><div>integrated in the CodeBlock editor. I've compiled/installed the Petsc , Slepc and having no</div><div>problems calling the Petsc/Slepc functions in C, it works perfectly.</div><div><br></div><div>When it comes to using Petsc in Fortran I follow the instructions given in that article, especially the item 3</div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html</a><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">but so far I couldn't succeed to run them succesfully in Fortran,  my main code is as follow:</span></div><div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">program main</span></div><div>implicit none</div><div>#include <finclude/petscsys.h></div><div>#include <finclude/petscvec.h></div><div>#include <finclude/petscvec.h90></div><div><br></div><div>PetscReal norm</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">print *,"Hello World "</span></div><div><span style="font-size: 12pt;">end</span></div></div><div><br></div><div>I've added all the related include folders to search path (Petsc_Dir\include\finclude etc..) and library </div><div>file "libpetsc.a" which results after Petsc compilation, but still compiler complains about the </div><div>"Error: Unclassifiable statement at (1)" <span style="font-size: 12pt;">PetscReal norm. Which means that compiler is unaware of type </span></div><div><span style="font-size: 12pt;">identifier PetscReal. What am I missing here ?</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Your help will be appreciated,</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Regards,</span></div><div><span style="font-size: 12pt;"><br></span></div><div><br></div>                                          </div></body>
</html>