I have a simple function which works well and pass the value by reference called poli_intersecting_return. I am trying to use that function in parallel using the code below but without success, I am always getting 0. Could someone see the mistake?
Hmmm you are right, it does not work.
But why? That kind of structure was the only structure that at least runs parallel and I was successfully using it for other functions, where no pass by ref value was needed.
EDIT: ok, I see the mistake. Thank you a lot for a good advice not to think about parallelism. Good point, probably a lot of experience :)