<div dir="ltr"><div>Hi,</div><div><br></div>I am dealing with a workflow pattern where an app expects multiple output files with a pattern.<div><br></div><div>The app signature is:</div><div><br></div><div><div>app (file[] _wrfout, file _out, file _err) wrf_app (file _wrf_in, file[] _tbl, file[] _ozone, ...)</div><div>{</div><div>   wrf stdout=@_out stderr=@_err;</div><div>}</div></div><div><br></div><div>The _wrfout files are the app result files which follows a pattern: wrfout_*</div><div><br></div><div>So, I am invoking the application in a foreach loop as:</div><div><br></div><div><div>foreach i in [0:2]{</div><div>  file[] wrfout<simple_mapper; location=strcat("outdir",i), pattern="wrfout_*">;</div><div>  file wrfstdout<single_file_mapper; file=strcat("outdir", i, "/std.out")>;</div><div>  file wrfstderr<single_file_mapper; file=strcat("outdir", i, "/std.err")>;</div><div><br></div><div>   (wrfout, wrfstdout, wrfstderr) = wrf_app (wrfin, tbl, ozone, tr, data, gribmap, namelist, co2_trans, input_sounding);</div><div>}</div></div><div><br></div><div>The script hangs at runtime with the following messages:</div><div><br></div><div><div>No events in 1s.</div><div>Finding dependency loops...</div><div><br></div><div>Waiting threads:</div><div>Thread: R-6-0-4, waiting on wrfout (declared on line 50)</div><div><span class="" style="white-space:pre">    </span>swift:stageOut, wf.edison, line 134</div><div><span class="" style="white-space:pre">        </span>swift:execute, wf.edison, line 123</div><div><span class="" style="white-space:pre"> </span>wrf_app, wf.edison, line 242</div><div><br></div><div>Thread: R-6-2-4, waiting on wrfout (declared on line 50)</div><div><span class="" style="white-space:pre">       </span>swift:stageOut, wf.edison, line 134</div><div><span class="" style="white-space:pre">        </span>swift:execute, wf.edison, line 123</div><div><span class="" style="white-space:pre"> </span>wrf_app, wf.edison, line 242</div><div><br></div><div>Thread: R-6-1-4, waiting on wrfout (declared on line 50)</div><div><span class="" style="white-space:pre">       </span>swift:stageOut, wf.edison, line 134</div><div><span class="" style="white-space:pre">        </span>swift:execute, wf.edison, line 123</div><div><span class="" style="white-space:pre"> </span>wrf_app, wf.edison, line 242</div></div><div><br></div><div>Any suggestions?</div><div><br></div><div>Thanks,</div><div>Ketan</div></div>