I am getting different solutions for BVP when Bvp4c is used in for loop and parfor loop.

1 view (last 30 days)
In each loop of the parfor i give one bvp4c to solve and i check where actually this bvp4c get solved by iterating and store those values in an array. But when i check them with a for loop the solutions are different and moreover the solutions which are coming out from for loop are right solutions. Is their any way to get right solutions using bvp4c and parfor loop.
  1 Comment
Edric Ellis
Edric Ellis on 23 Jun 2014
Do you have a simple example that we can run to see where the problem might be? Also, remember that PARFOR workers are separate MATLAB processes, so GLOBAL/PERSISTENT data are not automatically synchronized between the processes - this is one common cause of problems.

Sign in to comment.

Answers (0)

Categories

Find more on Parallel Computing Fundamentals in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!