[MITgcm-support] mpich

Ed Hill ed at eh3.com
Thu Apr 20 09:32:28 EDT 2006


On Thu, 2006-04-20 at 09:23 -0400, Ed Hill wrote:
> So, I think the failure is that your CPP is not finding the mpif.h file.
> If thats the problem (and it probably is), then you can fix it by adding
> something similar to:
> 
>   INCLUDES='-I/opt/mpt/1.0-0/include/'
>   INCLUDEDIRS='/opt/mpt/1.0-0/include/'
> 
> to your optfile so that CPP knows where to find the mpif.h file.

Hi Eli,

I should point out that the path above is for an Altix system and I've
no idea where the mpif.h file is located on your system.  You'll need to
figure out where it is and then edit the optfile appropriately.

Usually, the mpif77 program has options such as:

  mpif77 -help
  mpif77 -compile-info
  mpif77 -link-info

that will show you where it looks to get its additional headers and
libraries.

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-support mailing list