<div dir="ltr">On Mon, Apr 29, 2013 at 7:09 AM, Sonya Blade <span dir="ltr"><<a href="mailto:sonyablade2010@hotmail.com" target="_blank">sonyablade2010@hotmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> What is the compilation command you are executing? It is probably <br>
> because you are not running the pre-processor in Fortran which is<br>
> switched off in the PGI compiler by default.<br>
> Regards,<br>
><br>
> Wadud.<br>
><br>
 <br>
What it's got anything to do with PGI compiler I'm using Gnu Fortran?<br>
I try to compile program with the given command lines executions.<br>
<br>
-------------- Build: Debug in Petsc_Fortran (compiler: GNU GFortran Compiler)---------------<br>
<br>
gfortran.exe -Wall  -g  -Wall   -IC:\Users\....\Downloads\petsc-3.3-p6\include\finclude -IC:\Users\...\Downloads\petsc-3.3-p6\arch-mswin-c-debug\include  -c D:\....\PROJECTS\CBFortran\Petsc_Fortran\main.f90 -o obj\Debug\main.o<br>

<br>
<br>
<br>
<br>
>Are you sure that your compiler is preprocessing the file? You usually need<br>
>to name it *.F.<br>
><br>
>   Matt<br>
<br>
I've tried with every possible fortran file extension, I'm sure that file is being <br>
pre-processed because if I comment the line of "PetscReal norm" it compiles and runs</blockquote><div><br></div><div style>That is not evidence for the file being preprocessed. Preprocessing means that the #include</div>
<div style>statements bring in other code from the headers.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
normally and produces the print statement on console screen.<br></blockquote><div><br></div><div style>So the examples run? If so, there is a problem with your build, and we would recommend</div><div style>building with the makefiles we provide.</div>
<div style><br></div><div style>  Thanks,</div><div style><br></div><div style>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,                                          </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>