10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Parallel Operation<br />

.define_task t_print_index(index=0)<br />

fprint(stdout, "Index: %d\n", index)<br />

.end_define_task<br />

.define_task t_main_para<br />

para(t_print_index(index=ijob()) /* ijob() returns 1. */,<br />

+ t_print_index(index=ijob()) /* ijob() returns 2. */)<br />

.end_define_task<br />

.t_main_para<br />

The output of the execution of the previous example can be:<br />

Index: 1<br />

Index: 2or:Index: 2<br />

Index: 1<br />

Example: storing results inside arrays:<br />

Eldo® User's Manual, 15.3 1041

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!