<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=465373015-26022009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=465373015-26022009>&nbsp;Are you having any problems using argc/argv in 
your code ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=465373015-26022009></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>R<SPAN 
class=465373015-26022009>egards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN 
class=465373015-26022009></SPAN></FONT></FONT></FONT><SPAN 
class=465373015-26022009></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>J<SPAN 
class=465373015-26022009>ayesh</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov 
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Sole 
Eko<BR><B>Sent:</B> Thursday, February 26, 2009 7:23 AM<BR><B>To:</B> 
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] mpi program with 
argumets<BR></FONT><BR></DIV>
<DIV></DIV>Hi, <BR><BR>I would like to make example program cpi.c to be able to 
run wih one or more arguments, for example:<BR><BR>mpiexec cpi.exe 
1000<BR><BR>where 1000 is, say, number of rectangles.<BR><BR>I saw that 
MPI_Init(&amp;argc,&amp;arv) uses argumets passed to main method, but not more 
than that..<BR><BR>how can I acheve passing number of rectangles to 
cpi.exe?<BR><BR>I attached original version of 
cpi.c<BR><BR>Sole<BR><BR></BODY></HTML>