<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=985095718-06072009><FONT color=#0000ff
size=2 face=Arial>It often means that the mpif.h that got picked up in the
compile step is from a different MPI implementation. Make sure there is no
mpif.h file in the subdirectories containing your application, and use the
mpif77/mpif90 script provided by the MPI implementation to compile your
program.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985095718-06072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985095718-06072009><FONT color=#0000ff
size=2 face=Arial>Rajeev</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985095718-06072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>xiao
zhang<BR><B>Sent:</B> Monday, July 06, 2009 1:55 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss]
MPI_Comm_size<BR></FONT><BR></DIV>
<DIV></DIV>HI~ Everyone: i have a little doubt about the
funtion:<BR>MPI_Comm_size<BR>If I call it like:<BR><BR>include
'mpif.h'<BR>integer :: ierr<BR>call MPI_Init(ierr)<BR>call
MPI_Comm_size(MPI_COMM_WORLD,<B>mgroupsize</B>,ierr)<BR><BR>Then I use 8
processors to run the program, the return value of <B>mgroupsize </B>should be
8. Is that right?<BR>If it is right, the return value for me is just
1. What would be the possible problem?<BR> <BR> I am
really new to this and thank you very
much<BR>
Xia<BR></BLOCKQUOTE></BODY></HTML>