Gus
Thank you I give that a try.
Dan Shell

-----Original Message-----
From: users [mailto:users-boun...@open-mpi.org] On Behalf Of Gus Correa
Sent: Friday, July 25, 2014 1:15 PM
To: Open MPI Users
Subject: Re: [OMPI users] Trying to use openmpi with MOM getting a compile
error

Hi Dan

This is not an Open MPI problem.
This is most likely a problem with the MOM Makefile, which seems to be
missing your Open MPI include directory.

Change the mkmf.template file and replace the Fortran compiler name
(gfortran) by the Open MPI (OMPI) Fortran compiler
wrapper: mpifortran (or mpif90 if it still exists in OMPI 1.8.1), perhaps
using the full path to it.
The mpifortran/mpif90 compiler wrapper knows exactly where to find the Open
MPI include files, the libraries, etc.
You may need to comment out or remove spurious entries mkmf.template
pointing to other MPI implementations (e.g.
to MPICH libraries and include files).

Then rebuild the Makefile and compile MOM again.

I hope this helps.
Gus Correa


On 07/25/2014 12:37 PM, Dan Shell wrote:
> OpenMOM-mpi
> I am trying to compile MOM and have installed openmpi 1.8.1 getting an 
> installation error below Looking for some help in openmpi to make sure 
> the mpif.h is loaded correctly Should I use an older version of 
> openmpi?
> Thank You
> Dan Shell
>
> gfortran  -Duse_netCDF -Duse_netCDF3 -Duse_libMPI -DUSE_OCEAN_BGC
> -DENABLE_ODA -DSPMD -DLAND_BND_TRACERS     -c
> -I/root/Desktop/NEW_MOM/newmom/src/shared/include
> -I/root/Desktop/NEW_MOM/newmom/src/shared/mpp/include
> /root/Desktop/NEW_MOM/newmom/src/shared/mpp/mpp_data.F90
> /root/Desktop/NEW_MOM/newmom/src/shared/mpp/mpp_data.F90:23:
>
> include <mpif.h>
> 1
> Error: Unclassifiable statement at (1)
> /root/Desktop/NEW_MOM/newmom/src/shared/mpp/include/mpp_data_mpi.inc:8.31:
>      Included at
> /root/Desktop/NEW_MOM/newmom/src/shared/mpp/mpp_data.F90:45:
>
> integer :: stat(MPI_STATUS_SIZE)
>                                 1
> Error: Symbol 'mpi_status_size' at (1) has no IMPLICIT type
> /root/Desktop/NEW_MOM/newmom/src/shared/mpp/mpp_data.F90:28.16:
>
>    public :: stat, mpp_stack, ptr_stack, status, ptr_status, sync,
ptr_sync
>                  1
> Error: The module or main program array 'stat' at (1) must have 
> constant shape
> make: *** [mpp_data.o] Error 1
> if ( 2 ) then
> echo Make failed to create  lib_FMS.a
> Make failed to create  lib_FMS.a
>
>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2014/07/24876.php
>

_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post:
http://www.open-mpi.org/community/lists/users/2014/07/24877.php

Reply via email to