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

+ cumul / (res.size - nb_errors))<br />

endif<br />

.end_define_task<br />

.t_step_para<br />

Local Declarations for Temporary Results<br />

To avoid using arrays for temporary results, you can declare some local variables inside a<br />

parallel loop even if .option restrict_<strong>eldo</strong>_cl_declarations=1. In this case, each run of the loop<br />

has its own internal copy of the variable and then it is allowed to modify its value inside the<br />

loop body. When .option restrict_<strong>eldo</strong>_cl_declarations=1, it is not allowed to define local<br />

variables having the same name as other task variables.<br />

Tip<br />

See “.OPTION RESTRICT_ELDO_CL_DECLARATIONS” in the Eldo Reference<br />

Manual.<br />

Example: alternative to the previous example; if not computing the average and if the order of<br />

the outputs does not matter, it is possible to avoid using arrays by using private variables:<br />

Eldo® User's Manual, 15.3 1049

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

Saved successfully!

Ooh no, something went wrong!