gvegayon / parallel

PARALLEL: Stata module for parallel computing
https://rawgit.com/gvegayon/parallel/master/ado/parallel.html
MIT License
118 stars 26 forks source link

Fix problem with foreach #5

Closed bquistorff closed 10 years ago

bquistorff commented 10 years ago

Calling parallel from inside a foreach causes an error. Inside a foreach system globals like !1fe are listed but can't actually be accessed which causes the problem. (You mentioned a foreach... numlist caused problems but it's more general). I saw your comment about the problem but I didn't see a solution, so here's a solution.Let me know if you fixed this some other way :)