I checked with trunk and this doesn't seem to be happening there. Will file a bug for 0.93.<div><br><div class="gmail_quote">On Fri, Oct 21, 2011 at 3:10 PM, Ketan Maheshwari <span dir="ltr"><<a href="mailto:ketancmaheshwari@gmail.com">ketancmaheshwari@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Mike,<div><br></div><div>Indeed the output seems to be as expected. I just tried this and worked for me. However, if you see the log, at the point where the arguments are passed to the worker it gets converted to float. See this line in the log of this run:</div>

<div><br></div><div>2011-10-21 15:05:03,291-0500 DEBUG vdl:execute2 JOB_START jobid=echo-suhonmhk tr=echo arguments=[foo, 35.0] tmpdir=km-20111021-1504-f4bc0xg4/jobs/s/echo-suhonmhk host=localhost</div><div><br></div><div>

35 became 35.0 there.<br><br>Regards,</div><div>Ketan</div><div><div><div></div><div class="h5"><br><div class="gmail_quote">On Fri, Oct 21, 2011 at 2:38 PM, Michael Wilde <span dir="ltr"><<a href="mailto:wilde@mcs.anl.gov" target="_blank">wilde@mcs.anl.gov</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried this with an example closer to what you wrote in the initial message, Ketan.<br>
<br>
It still seems to work OK under the trunk rev indicated:<br>
<br>
bri$ cat km1.swift<br>
type outfile;<br>
<br>
app (outfile o ) myapp(string a, int b ){<br>
 echo a b  stdout=@o;<br>
}<br>
<br>
outfile out<"km1.out">;<br>
<br>
out = myapp("foo", 35 );<br>
<br>
bri$ swift km1.swift<br>
<div><br>
no sites file specified, setting to default: /home/wilde/swift/rev/trunk/etc/sites.xml<br>
Swift svn swift-r5234 cog-r3296<br>
<br>
</div>RunID: 20111021-1436-z7s2z5rb<br>
Progress:  time: Fri, 21 Oct 2011 14:37:01 -0500<br>
Final status: Fri, 21 Oct 2011 14:37:01 -0500  Finished successfully:1<br>
bri$ cat km1.out<br>
foo 35<br>
bri$<br>
<br>
- Mike<br>
<div><div></div><div><br>
<br>
----- Original Message -----<br>
> From: "Michael Wilde" <<a href="mailto:wilde@mcs.anl.gov" target="_blank">wilde@mcs.anl.gov</a>><br>
> To: "Ketan Maheshwari" <<a href="mailto:ketancmaheshwari@gmail.com" target="_blank">ketancmaheshwari@gmail.com</a>><br>
> Cc: "Swift User" <<a href="mailto:swift-user@ci.uchicago.edu" target="_blank">swift-user@ci.uchicago.edu</a>><br>
> Sent: Friday, October 21, 2011 2:33:48 PM<br>
> Subject: Re: [Swift-user] app argument int passed as float<br>
> In at least some recent version of trunk, ints seem to get passed ok,<br>
> as below.<br>
><br>
> Now lets see where the difference is.<br>
><br>
> - Mike<br>
><br>
> bri$ cat args.swift<br>
> type file;<br>
><br>
> app (file o) echo(int i)<br>
> {<br>
> echo i stdout=@o;<br>
> }<br>
><br>
> file eo<"echo.out">;<br>
><br>
> eo=echo(123);<br>
> bri$ which swift<br>
> ~/swift/rev/trunk/bin/swift<br>
> bri$ swift -version<br>
> no sites file specified, setting to default:<br>
> /home/wilde/swift/rev/trunk/etc/sites.xml<br>
> Swift svn swift-r5234 cog-r3296<br>
><br>
> bri$ swift args.swift<br>
> no sites file specified, setting to default:<br>
> /home/wilde/swift/rev/trunk/etc/sites.xml<br>
> Swift svn swift-r5234 cog-r3296<br>
><br>
> RunID: 20111021-1431-8mzx0ya2<br>
> Progress: time: Fri, 21 Oct 2011 14:31:04 -0500<br>
> Final status: Fri, 21 Oct 2011 14:31:04 -0500 Finished successfully:1<br>
> bri$ cat echo.out<br>
> 123<br>
> bri$<br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > From: "Ketan Maheshwari" <<a href="mailto:ketancmaheshwari@gmail.com" target="_blank">ketancmaheshwari@gmail.com</a>><br>
> > To: "Swift User" <<a href="mailto:swift-user@ci.uchicago.edu" target="_blank">swift-user@ci.uchicago.edu</a>><br>
> > Sent: Wednesday, October 19, 2011 8:30:24 PM<br>
> > Subject: [Swift-user] app argument int passed as float<br>
> > Hi,<br>
> ><br>
> ><br>
> > In my app definition, I have an argument of type int that is<br>
> > expected<br>
> > by the executable.<br>
> ><br>
> ><br>
> ><br>
> > I define my app something like this:<br>
> ><br>
> ><br>
> > (outfile o ) app myapp(string a, int b, datafile c, ...){<br>
> > cmd a b c stdout @o;<br>
> > }<br>
> ><br>
> ><br>
> > I call this as:<br>
> > <..mappers..><br>
> ><br>
> ><br>
> > out = myapp("foo", 35, @afile, ...);<br>
> ><br>
> ><br>
> > However, it seems that at the time of the actual call, the value 35<br>
> > which is an int get replaced by the value 35.0, a float.<br>
> ><br>
> ><br>
> > I could see this from the arguments dumped by swift at the end of<br>
> > exception message:<br>
> ><br>
> ><br>
> > "<br>
> ><br>
> > Exception in presgt:<br>
> > Arguments: [TEST, 35.0, .....<br>
> > "<br>
> ><br>
> ><br>
> > The underlying app binary doesn't like because apparently the java<br>
> > is<br>
> > calling Integer.parseInt and getting a float formatted string.<br>
> ><br>
> > Any ideas?<br>
> ><br>
> ><br>
> > Regards, --<br>
> > Ketan<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Swift-user mailing list<br>
> > <a href="mailto:Swift-user@ci.uchicago.edu" target="_blank">Swift-user@ci.uchicago.edu</a><br>
> > <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user</a><br>
><br>
> --<br>
> Michael Wilde<br>
> Computation Institute, University of Chicago<br>
> Mathematics and Computer Science Division<br>
> Argonne National Laboratory<br>
<br>
--<br>
Michael Wilde<br>
Computation Institute, University of Chicago<br>
Mathematics and Computer Science Division<br>
Argonne National Laboratory<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><font color="#888888">-- <br>Ketan<br><br><br>
</font></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ketan<br><br><br>
</div>