<div>Dear Riccardo, </div>
<div> </div>
<div>Thanks, I tried first one just before I saw your email. </div>
<div>I got into some other problem now. When I tried make all, I got some compilation errors in the first fortran program itself iotl_base.f90</div>
<div>The error seems to be "Lead underscore not allowed". This is coming repeatedly and there a a repeated warning "Bad #preprocessor line". I am using ifort compiler. I am going to do some search to see what this is about. If you have any insight, help will be highly appreciated. </div>
<div> </div>
<div>Best Regards,</div>
<div>Vikas<br><br></div>
<div class="gmail_quote">On Wed, May 26, 2010 at 3:11 PM, Riccardo Di Meo <span dir="ltr"><<a href="mailto:dimeo@democritos.it">dimeo@democritos.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">Vikas Varshney wrote:<br>> Dear all,<br>> I have a very simple question.<br>><br>> I have 2 mpif90 installed on my machine<br>> one in /usr/local/bin which does not have fortran support. It says<br>
> "Unfortunately, this installation of Open MPU was not compiled with<br>> Fortran 90 support ..."<br>> other one is in my local directory which was installed by me. It does<br>> have fortran compiler (ifort).<br>
><br>> When, I try to run configure script to genarate makefile, it assumes<br>> mpif90 to be the first one and results in unsuccessful configure. So,<br>> my question is that how can I direct the configure script to look for<br>
> other mpif90 and the assciated libraries and header files. Where do I<br>> need to make necessary changes? Or do I need to ask my admin to update<br>> mpif90 in /usr/local/bin (where I dont have writable access)?<br>
<br></div></div>Two solutions:<br><br>There's a MPIF90 environment variable, which can be set to the mpif90<br>compiler of your choice. Just point it to your mpif90 binary in your<br>home before configuring QE. This is the standard/correct solution.<br>
<br>A "one size fits all" solution, which you can use also for other similar<br>cases ,would be to make your PATH environment variable give precedence<br>to the location of the mpif90 compiler you want to use:<br>
<br>export PATH=<location of your mpif90>:$PATH [bash]<br><br>Hope this helps,<br>RDM<br>
<div class="im"><br>><br>> Thanks in advance.<br>><br>> Best Regards,<br>> Vikas<br></div>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>
> Pw_forum mailing list<br>> <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>> <a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
><br><br>_______________________________________________<br>Pw_forum mailing list<br><a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br><a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</blockquote></div><br>