Distributed loop and "include"

https://stackoverflow.com/questions/41288626/what-exactly-does-include-do


the real question is why do you want to put some script code (parts of a for loop) into a file. I suggest the following pattern:

@everhwer par1, par2 ...
@distributed for iv = par_values
   mod_pars = Dict("par1"=>par1,"par2"=>par2);
   do_and_write_CSV(mod_pars, iv)    
end
3 Likes