Dear Users:
I have been trying to use the intel ifort and icc compilers to
compile an atmospheric model called the Weather Research &
Forecasting model (WRFV2.2) on a Linux Cluster (x86_64) using Open-
MPI v1.2 that were also compiled with INTEL ICC. However, I got a
lot of error messages as follows when compiling WRF.
/data/software/x86_64/open-mpi/1.1.4-intel//include/mpi.h(788):
error: expected an identifier
OMPI_DECLSPEC MPI_Fint MPI_Comm_c2f(MPI_Comm comm);
^
/data/software/x86_64/open-mpi/1.1.4-intel//include/mpi.h(802):
error: "MPI_Comm" has already been declared in the current scope
OMPI_DECLSPEC MPI_Comm MPI_Comm_f2c(MPI_Fint comm);
^
/data/software/x86_64/open-mpi/1.1.4-intel//include/mpi.h(804):
error: function "MPI_Comm" is not a type name
OMPI_DECLSPEC int MPI_Comm_free(MPI_Comm *comm);
^
/data/software/x86_64/open-mpi/1.1.4-intel//include/mpi.h(805):
error: function "MPI_Comm" is not a type name
OMPI_DECLSPEC int MPI_Comm_get_attr(MPI_Comm comm, int comm_keyval,
^
/data/software/x86_64/open-mpi/1.1.4-intel//include/mpi.h(807):
error: function "MPI_Comm" is not a type name
OMPI_DECLSPEC int MPI_Comm_get_errhandler(MPI_Comm comm,
MPI_Errhandler *erhandler);
I would highly appreciate it if someone could give me suggestions on
how to fix the problem.
Jiming
------------------------------------------
Jiming Jin, PhD
Earth Sciences Division
Lawrence Berkeley National Lab
One Cyclotron Road, Mail-Stop 90-1116
Berkeley, CA 94720
Tel: 510-486-7551
Fax: 510-486-5686