<div dir="ltr">Hello,<div><br></div><div>I've defined a function with two optional arguments, one int and one string:</div><div><div>(int retcode) sweep (string prefix, file json, file tusr,</div><div>                     string pname, float[] pvals, int nwrite, boolean legacy,</div><div>                     int nstep,</div><div>                     int io_step, int step_block,</div><div>                     float io_time, float time_block,</div><div>                     int nodes, int mode, int job_time,</div><div>                     string analysis="RTI",</div><div>                     int j0=0</div><div>                    ){</div></div><div>When I run, I get a warning that seems to indicate that the second optional argument is being given the string type even though its declared int:</div><div><div>Could not start execution:</div><div>        k:main @ HillColl.kml, line: 1 does not have a parameter named 'swift.string.17023j0', k:named @ HillColl.kml, line: 850:</div><div>        k:main @ HillColl.kml, line: 1 does not have a parameter named 'swift.string.17023j0'</div></div><div>If I change the order the optional arguments are declared in, then it thinks the string argument is an int:</div><div><div>Could not start execution:</div><div>        k:main @ HillColl.kml, line: 1 does not have a parameter named 'swift.int.0analysis', k:named @ HillColl.kml, line: 850:</div><div>        k:main @ HillColl.kml, line: 1 does not have a parameter named 'swift.int.0analysis'</div></div><div><br></div><div>Is there heavy use of optional arguments in the community?</div><div><br></div><div>Thanks,</div><div>Max</div></div>