<div dir="ltr"><br>fkomijani@fk1:~/program_install/COAWST$ mpif90 -v -o hello hello.F90 ./coawst.bash<br>mpif90 for MPICH version 3.0.4<br>Driving: gfortran -v -o hello hello.F90 ./coawst.bash -I/home/fkomijani/program_install/mpich-3.0.4/include -I/home/fkomijani/program_install/mpich-3.0.4/include -L/home/fkomijani/program_install/mpich-3.0.4/lib -lmpichf90 -lmpich -lopa -lmpl -lrt -lpthread -l gfortran -l m -shared-libgcc<br>gfortran: error: hello.F90: No such file or directory<br>Using built-in specs.<br>COLLECT_GCC=gfortran<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper<br>Target: i686-linux-gnu<br>Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu<br>Thread model: posix<br>gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) <br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 13, 2014 at 4:33 PM, Junchao Zhang <span dir="ltr"><<a href="mailto:jczhang@mcs.anl.gov" target="_blank">jczhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>That is strange. </div><div>Could you compile the following program with "mpif90 -v -o hello hello.F90" and paste the output?</div><div><br></div><div>! hello.F90</div><div>program main</div><div> implicit none</div><div> include 'mpif.h'</div><div> integer :: ierr</div><div><br></div><div> call MPI_Init(ierr)</div><div> call MPI_Finalize(ierr)</div><div>end program</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div dir="ltr">--Junchao Zhang</div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Sat, Sep 13, 2014 at 6:24 AM, fereshteh komijani <span dir="ltr"><<a href="mailto:fereshtehkomijani@gmail.com" target="_blank">fereshtehkomijani@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 dir="ltr"><div><div>sorry that is my fault, it is mpif.h <br><br></div>it seems that COAWST model is searching it, in -I/user/include directory not in<br> /home/fkomijani/program_install/mpich-3.0.4/include.<br></div>so how can i set mentined directory in system environment?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 13, 2014 at 3:45 PM, Junchao Zhang <span dir="ltr"><<a href="mailto:jczhang@mcs.anl.gov" target="_blank">jczhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The file name should be mpif.h, but not mpih.f. </p><div><div>
<div class="gmail_quote">On Sep 13, 2014 1:45 AM, "fereshteh komijani" <<a href="mailto:fereshtehkomijani@gmail.com" target="_blank">fereshtehkomijani@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">yes, /home/fkomijani/program_install/mpich-3.0.4/include contains mpih.f<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 13, 2014 at 11:07 AM, Kenneth Raffenetti <span dir="ltr"><<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you 'ls /home/fkomijani/program_<u></u>install/mpich-3.0.4/include' does it contain an mpif.h file? If not, your MPICH installation might be bad.<span><br>
<br>
On 09/13/2014 03:24 PM, fereshteh komijani wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
gfortran -I/home/fkomijani/program_<u></u>install/mpich-3.0.4/include<br>
-I/home/fkomijani/program_<u></u>install/mpich-3.0.4/include<br>
-L/home/fkomijani/program_<u></u>install/mpich-3.0.4/lib -lmpichf90 -lmpich<br>
-lopa -lmpl -lrt -lpthread<br>
<br>
<br>
On Sat, Sep 13, 2014 at 10:52 AM, Kenneth Raffenetti<br></span><span>
<<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a> <mailto:<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>>> wrote:<br>
<br>
What is the output from 'mpif90 -show'?<br>
<br>
On 09/13/2014 03:19 PM, fereshteh komijani wrote:<br>
<br>
dear Kenneth Raffenetti<br>
i am using mpif90 compiler.<br>
if it is, why i have got that error?<br>
<br>
On Sat, Sep 13, 2014 at 10:47 AM, Kenneth Raffenetti<br>
<<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a> <mailto:<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>><br></span><div><div>
<mailto:<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a> <mailto:<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>>><u></u>> wrote:<br>
<br>
Are you using the mpif77 or mpif90 compiler wrappers to<br>
build your<br>
program? They will automatically add the location of mpif.h<br>
to your<br>
include path.<br>
<br>
On 09/13/2014 02:56 PM, fereshteh komijani wrote:<br>
<br>
Dear friends<br>
<br>
recently I have installed mpich 3.0.4 in my system<br>
(Ubuntu).<br>
<br>
After compiling my model (coawst) it gives me following<br>
error :<br>
<br>
mod_parallel.f90:17: Error: Can't open included file<br>
'mpif.h'<br>
<br>
coaws's developer tell me :<br>
<br>
*check your environment and see if the location of<br>
mpif.h is in your<br>
INCLUDE list*.<br>
<br>
But I don't know what is its mean? Where and how I can<br>
do that? Does<br>
environment mean .bashrc?<br>
<br>
many thanks for any reply<br>
<br>
fereshteh<br>
<br>
<br>
<br>
--<br>
***Angel***<br>
*__*<br>
<br>
<br></div></div>
______________________________<u></u>_____________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
<mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><span><br>
<mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>>><br>
To manage subscription options or unsubscribe:<br></span>
<a href="https://lists.mpich.org/____mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/____<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a>><br>
<<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a>>><br>
<br>
______________________________<u></u>_____________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
<mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><span><br>
<mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>>><br>
To manage subscription options or unsubscribe:<br></span>
<a href="https://lists.mpich.org/____mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/____<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a>><div><div><br>
<<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a>>><br>
<br>
<br>
<br>
<br>
--<br>
***Angel***<br>
*__*<br>
<br>
<br>
______________________________<u></u>___________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a>><br>
<br>
______________________________<u></u>___________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a>><br>
<br>
<br>
<br>
<br>
--<br>
***Angel***<br>
*__*<br>
<br>
<br>
______________________________<u></u>_________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a><br>
<br>
</div></div></blockquote><div><div>
______________________________<u></u>_________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:center"><font style="background-color:#cc33cc" color="#ffffff" face="comic sans ms,sans-serif" size="4"><strong>**Angel**</strong></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><strong><u><font style="background-color:#3333ff" color="#ffff33" face="Arial Narrow" size="4"></font></u></strong></span> </div>
</div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div>
</div></div><br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:center"><font style="background-color:#cc33cc" color="#ffffff" face="comic sans ms,sans-serif" size="4"><strong>**Angel**</strong></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><strong><u><font style="background-color:#3333ff" color="#ffff33" face="Arial Narrow" size="4"></font></u></strong></span> </div>
</div>
</div></div><br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:center"><font style="background-color:#cc33cc" color="#ffffff" size="4" face="comic sans ms,sans-serif"><strong>**Angel**</strong></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><strong><u><font style="background-color:#3333ff" color="#ffff33" size="4" face="Arial Narrow"></font></u></strong></span> </div>
</div>