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 />

para<br />

Task function category: Parallelize Functions<br />

The function para() is used to run in parallel the tasks and functions specified as parameters.<br />

The first parallel construct enables you to define tasks or functions (jobs) to be run in parallel.<br />

The results of the tasks or functions are stored inside an array.<br />

Usage<br />

para()<br />

para(task1(), task2())<br />

Arguments<br />

• task 1<br />

First task to be run in parallel.<br />

• task 2<br />

Second task to be run in parallel.<br />

Examples<br />

Example: task1 and task2 run in parallel:<br />

para(task1(), task2())<br />

The result returned by the function para() is an array containing the results of the execution of<br />

the arguments.<br />

Example: obtaining the results of two simulations:<br />

set i =0<br />

set res[] = 0<br />

res = para(simulation(tb1()),<br />

+ simulation(tb2()))<br />

for (i=res.imin; i

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

Saved successfully!

Ooh no, something went wrong!