Newsgroups: comp.parallel.mpi
From: henry@twinpeaks.torolab.ibm.com (Henry Zongaro)
Reply-To: zongaro@vnet.ibm.com
Subject: Re: How to write MPI program in Fortran90 ?
Organization: IBM Toronto Laboratory
Date: 21 Jun 1996 12:34:54 GMT
Message-ID: <4qe4te$t4k@tornews.torolab.ibm.com>

In article <4qcrtb$bd0@hkusuc.hku.hk>, cmwoo@hkusu8.hku.hk (Woo Chat Ming) writes:
|>   I have written a serial program in Fortran 90 in IBM SP2. Now, I want to
|> parallelize it using MPI library. 
|>   However, the header file "mpif.h" is written in Fortran 77. After I 
|> "include" it into my program, my compiler(xlf90) generates a lot of errors.
|> 
|>   Do anyone know how to write MPI programs in fortran 90 ? 
|>  
|>   Thank you for any help.

If you're using the xlf90 command, try compiling with the -qfixed option.
The default for the xlf90 command is free source form, but mpif.h is written
in fixed source form.

Thanks,

Henry
-------------------------------------------------------------------------------
Henry Zongaro      XL Fortran/XL HPF Compiler Development
IBM SWS Toronto Lab   Tie Line 778-6044  Phone (416) 448-6044
Internet id: zongaro@vnet.ibm.com

