<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFCC99" text="#000099">
    <div class="moz-forward-container"><font size="-1">The results is
        the same with lower case letters...</font><br>
      <div class="moz-cite-prefix"> <br>
        <br>
        On 04/24/2014 07:39 PM, Matthew Knepley wrote:<br>
      </div>
      <blockquote
cite="mid:CAMYG4GmeeNEfpF9Nz5K__eLZ4DRWZQf24krb3dmZki50GR8rsw@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <div class="gmail_extra">
            <div class="gmail_quote">On Thu, Apr 24, 2014 at 8:36 PM,
              Steve Ndengue <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:steve.ndengue@gmail.com" target="_blank">steve.ndengue@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div bgcolor="#FFCC99" text="#000099">
                  <div><font size="-1">Thank you for the quick reply.<br>
                      <br>
                      It partly solved the problem; the PETSC and SLEPC
                      files are now included in the compilation.<br>
                      <br>
                      However the Warning are now error messages!<br>
                      ***<br>
                      <i>pgm_hatom_offaxis_cyl.F90:880:0: error: invalid
                        preprocessing directive #INCLUDE</i><i><br>
                      </i><i>pgm_hatom_offaxis_cyl.F90:887:0: error:
                        invalid preprocessing directive #IF</i><i><br>
                      </i><i>pgm_hatom_offaxis_cyl.F90:890:0: error:
                        invalid preprocessing directive #ELSE</i><i><br>
                      </i><i>pgm_hatom_offaxis_cyl.F90:893:0: error:
                        invalid preprocessing directive #ENDIF</i><br>
                      ***<br>
                    </font></div>
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>These should not be capitalized.</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 bgcolor="#FFCC99" text="#000099">
                  <div><font size="-1"> And the corresponding code lines
                      are:<br>
                      ***<br>
                      <b>#INCLUDE <finclude/slepcepsdef.h></b><b><br>
                      </b><b>        USE slepceps</b><b><br>
                      </b><b><br>
                      </b><b>!</b><b><br>
                      </b><b> IMPLICIT NONE</b><b><br>
                      </b><b>!--------------------</b><b>--<br>
                      </b><b>!</b><b><br>
                      </b><b>#IF DEFINED(PETSC_USE_FORTRAN_DATATYPES)</b><b><br>
                      </b><b>       
                        TYPE(Mat)                                         
                        A</b><b><br>
                      </b><b>       
                        TYPE(EPS)                                         
                        solver</b><b><br>
                      </b><b>#ELSE</b><b><br>
                      </b><b>       
                        Mat                                               
                        A</b><b><br>
                      </b><b>       
                        EPS                                               
                        solver</b><b><br>
                      </b><b>#ENDIF</b><br>
                      ***<br>
                    </font><br>
                    <font size="-1">Sincerely.</font><br>
                    <br>
                    On 04/24/2014 07:25 PM, Satish Balay wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <pre>On Thu, 24 Apr 2014, Steve Ndengue wrote:

</pre>
                    <blockquote type="cite">
                      <pre>Dear all,

I am having trouble compiling a code with some dependencies that shall call
SLEPC.
The compilation however goes perfectly for the various tutorials and tests in
the package.

A sample makefile looks like:

***

/default: code//
//routines: Rout1.o Rout2.o Rout3.o Module1.o//
//code: PgmPrincipal//
//sources=Rout1.f Rout2.f Rout3.f Module1.f90//
</pre>
                    </blockquote>
                    <pre>Its best to rename your sourcefiles .F/.F90 [and not .f/.f90
[this enables using default targets from petsc makefiles - and its
the correct notation for preprocessing - which is required by petsc/slepc]

</pre>
                    <blockquote type="cite">
                      <pre>//objets=Rout1.o Rout2.o Rout3.o Module1.o Pgm//Principal//.o//
//
//%.o: %.f//
//        -${FLINKER} -c $<//
</pre>
                    </blockquote>
                    <pre>And you shouldn't need to create the above .o.f target.

Satish


</pre>
                    <blockquote type="cite">
                      <pre>//
//Module1_mod.mod Module1.o: //Module1//.f90//
//        -${FLINKER} -c //Module1//.f90//
//
//include ${SLEPC_DIR}/conf/slepc_common//
//
//Pgm//Principal//: ${objets} chkopts//
//        -${FLINKER} -o $@ ${objets} ${SLEPC_LIB}//
//
//.PHONY: clean//
//        ${RM} *.o *.mod Pgm//Principal//
/
***

The code exits with Warning and error messages of the type:

*Warning: Pgm**Principal**.f90:880: Illegal preprocessor directive**
**Warning: Pgm**Principal**.f90:889: Illegal preprocessor directive**
**Warning: Pgm**Principal**.f90:892: Illegal preprocessor directive**
**Warning: Pgm**Principal**.f90:895: Illegal preprocessor directive*

and

*USE slepceps**
**                    1**
**Fatal Error: Can't open module file 'slepceps.mod' for reading at (1): No
such file or directory


*I do not get these errors with the tests and errors files.


Sincerely,


</pre>
                    </blockquote>
                    <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
                  <span class="HOEnZb"><font color="#888888"> <br>
                      <br>
                      <pre cols="72">-- 
Steve </pre>
                    </font></span></div>
              </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>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Steve </pre>
      <br>
    </div>
    <br>
  </body>
</html>