[Swift-user] Workflow handling a large parallelism ?
Ben Clifford
benc at hawaga.org.uk
Tue May 6 09:48:33 CDT 2008
> (file simMerged)merge_sim(file simFiles[]){
> app{ cat @filenames(simFiles) ; }
> }
send stdout into simMerged probably.
> (file simFiles[]) batch_sim (){
>
> int simRange = [1:1000];
> forach i in simRange {
> simFiles[i]=run_sim(i);
> }
> }
>
> //I am concerned about this, I would like to be able to generate the
> filenames in swift,
> //not to be forced to list all the names
>
> string filenames[] = [ "sim_000",'sim_001", ... "sim_999" ];
> file simOutputs[] <array_mapper; files=filenames>;
Use simple_mapper perhaps like this:
file simOutputs[] <simple_mapper;prefix="sim_">;
I think you'll get 4 digit numbers that way, but perhaps you can cope with
that.
--
More information about the Swift-user
mailing list