problem in using parallel.for

  • Thread starter Thread starter goldenview
  • Start date Start date
G

goldenview

Guest
Dear All:

I'm using parallel.for to do several long time calculation in parallel like below, fnc is the calculation function. there are sevral inputs in x(), 3 for example x1 x2 and x3. Some times it met a problem that fnc will calculate one of them more than onece while another will not be calculated. For example x1 x1 x2,x2 x2 x1 etc.

parallel.for(1,3,sub(i as integer)
y=fnc(x(i))
end sub)


please what is wrong and how may I modify.

Thank you everyone!

Continue reading...
 
Back
Top