[mpich-discuss] mpif.h
Junchao Zhang
jczhang at mcs.anl.gov
Sat Sep 13 07:58:18 CDT 2014
"gfortran: error: hello.F90: No such file or directory"
You need to create hello.F90 as I said in the previous email.
"mpif90 -v -o hello hello.F90 ./coawst.bash"
Also, do not add ./coawst.bash
--Junchao Zhang
On Sat, Sep 13, 2014 at 7:15 AM, fereshteh komijani <
fereshtehkomijani at gmail.com> wrote:
>
> fkomijani at fk1:~/program_install/COAWST$ mpif90 -v -o hello hello.F90
> ./coawst.bash
> mpif90 for MPICH version 3.0.4
> 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
> gfortran: error: hello.F90: No such file or directory
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
> Target: i686-linux-gnu
> 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
> Thread model: posix
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>
>
> On Sat, Sep 13, 2014 at 4:33 PM, Junchao Zhang <jczhang at mcs.anl.gov>
> wrote:
>
>> That is strange.
>> Could you compile the following program with "mpif90 -v -o hello
>> hello.F90" and paste the output?
>>
>> ! hello.F90
>> program main
>> implicit none
>> include 'mpif.h'
>> integer :: ierr
>>
>> call MPI_Init(ierr)
>> call MPI_Finalize(ierr)
>> end program
>>
>>
>> --Junchao Zhang
>>
>> On Sat, Sep 13, 2014 at 6:24 AM, fereshteh komijani <
>> fereshtehkomijani at gmail.com> wrote:
>>
>>> sorry that is my fault, it is mpif.h
>>>
>>> it seems that COAWST model is searching it, in -I/user/include directory
>>> not in
>>> /home/fkomijani/program_install/mpich-3.0.4/include.
>>> so how can i set mentined directory in system environment?
>>>
>>> On Sat, Sep 13, 2014 at 3:45 PM, Junchao Zhang <jczhang at mcs.anl.gov>
>>> wrote:
>>>
>>>> The file name should be mpif.h, but not mpih.f.
>>>> On Sep 13, 2014 1:45 AM, "fereshteh komijani" <
>>>> fereshtehkomijani at gmail.com> wrote:
>>>>
>>>>> yes, /home/fkomijani/program_install/mpich-3.0.4/include contains
>>>>> mpih.f
>>>>>
>>>>> On Sat, Sep 13, 2014 at 11:07 AM, Kenneth Raffenetti <
>>>>> raffenet at mcs.anl.gov> wrote:
>>>>>
>>>>>> If you 'ls /home/fkomijani/program_install/mpich-3.0.4/include' does
>>>>>> it contain an mpif.h file? If not, your MPICH installation might be bad.
>>>>>>
>>>>>> On 09/13/2014 03:24 PM, fereshteh komijani wrote:
>>>>>>
>>>>>>> gfortran -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
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Sep 13, 2014 at 10:52 AM, Kenneth Raffenetti
>>>>>>> <raffenet at mcs.anl.gov <mailto:raffenet at mcs.anl.gov>> wrote:
>>>>>>>
>>>>>>> What is the output from 'mpif90 -show'?
>>>>>>>
>>>>>>> On 09/13/2014 03:19 PM, fereshteh komijani wrote:
>>>>>>>
>>>>>>> dear Kenneth Raffenetti
>>>>>>> i am using mpif90 compiler.
>>>>>>> if it is, why i have got that error?
>>>>>>>
>>>>>>> On Sat, Sep 13, 2014 at 10:47 AM, Kenneth Raffenetti
>>>>>>> <raffenet at mcs.anl.gov <mailto:raffenet at mcs.anl.gov>
>>>>>>> <mailto:raffenet at mcs.anl.gov <mailto:raffenet at mcs.anl.gov>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>> Are you using the mpif77 or mpif90 compiler wrappers to
>>>>>>> build your
>>>>>>> program? They will automatically add the location of
>>>>>>> mpif.h
>>>>>>> to your
>>>>>>> include path.
>>>>>>>
>>>>>>> On 09/13/2014 02:56 PM, fereshteh komijani wrote:
>>>>>>>
>>>>>>> Dear friends
>>>>>>>
>>>>>>> recently I have installed mpich 3.0.4 in my system
>>>>>>> (Ubuntu).
>>>>>>>
>>>>>>> After compiling my model (coawst) it gives me
>>>>>>> following
>>>>>>> error :
>>>>>>>
>>>>>>> mod_parallel.f90:17: Error: Can't open included file
>>>>>>> 'mpif.h'
>>>>>>>
>>>>>>> coaws's developer tell me :
>>>>>>>
>>>>>>> *check your environment and see if the location of
>>>>>>> mpif.h is in your
>>>>>>> INCLUDE list*.
>>>>>>>
>>>>>>> But I don't know what is its mean? Where and how I
>>>>>>> can
>>>>>>> do that? Does
>>>>>>> environment mean .bashrc?
>>>>>>>
>>>>>>> many thanks for any reply
>>>>>>>
>>>>>>> fereshteh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ***Angel***
>>>>>>> *__*
>>>>>>>
>>>>>>>
>>>>>>> ___________________________________________________
>>>>>>> discuss mailing list discuss at mpich.org
>>>>>>> <mailto:discuss at mpich.org> <mailto:discuss at mpich.org
>>>>>>> <mailto:discuss at mpich.org>>
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/____mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/__mailman/listinfo/discuss>
>>>>>>> <https://lists.mpich.org/__mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/mailman/listinfo/discuss>>
>>>>>>>
>>>>>>> ___________________________________________________
>>>>>>> discuss mailing list discuss at mpich.org
>>>>>>> <mailto:discuss at mpich.org> <mailto:discuss at mpich.org
>>>>>>> <mailto:discuss at mpich.org>>
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/____mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/__mailman/listinfo/discuss>
>>>>>>>
>>>>>>> <https://lists.mpich.org/__mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/mailman/listinfo/discuss>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ***Angel***
>>>>>>> *__*
>>>>>>>
>>>>>>>
>>>>>>> _________________________________________________
>>>>>>> discuss mailing list discuss at mpich.org <mailto:
>>>>>>> discuss at mpich.org>
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/__mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/mailman/listinfo/discuss>
>>>>>>>
>>>>>>> _________________________________________________
>>>>>>> discuss mailing list discuss at mpich.org <mailto:discuss at mpich.org
>>>>>>> >
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/__mailman/listinfo/discuss
>>>>>>> <https://lists.mpich.org/mailman/listinfo/discuss>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ***Angel***
>>>>>>> *__*
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> discuss mailing list discuss at mpich.org
>>>>>>> To manage subscription options or unsubscribe:
>>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>>>
>>>>>>> _______________________________________________
>>>>>> discuss mailing list discuss at mpich.org
>>>>>> To manage subscription options or unsubscribe:
>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ***Angel***
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> discuss mailing list discuss at mpich.org
>>>>> To manage subscription options or unsubscribe:
>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>>
>>>>
>>>> _______________________________________________
>>>> discuss mailing list discuss at mpich.org
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>
>>>
>>>
>>>
>>> --
>>> ***Angel***
>>>
>>>
>>>
>>> _______________________________________________
>>> discuss mailing list discuss at mpich.org
>>> To manage subscription options or unsubscribe:
>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>
>>
>>
>> _______________________________________________
>> discuss mailing list discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>>
>
>
>
> --
> ***Angel***
>
>
>
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140913/7826a3e1/attachment.html>
More information about the discuss
mailing list