Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Simple Issue in Parallel (Mathematica 7)' topicStudent Support Forum > General > Archives > "Simple Issue in Parallel (Mathematica 7)"

Next Comment >Help | Reply To Topic
Author Comment/Response
Alex
04/13/12 11:56am

Hi, I have a simple code that fills a table with whatever characters in parallel

"""""""""""""""""""""""""""""""""""""""""""""

aaa = Table[" ", {j, 1, 10}];
SetSharedVariable[aaa];

ParallelDo[
aaa[[j]] = "a";
, {j, 1, 10}];

Print[aaa]

"""""""""""""""""""""""""""""""""""""""""""""

Which gives the following error:

et::pspec: Part specification j is neither an integer nor a list of integers.

Could someone please suggest a reason for this error and how to correct it,


URL: ,

Subject (listing for 'Simple Issue in Parallel (Mathematica 7)')
Author Date Posted
Simple Issue in Parallel (Mathematica 7) Alex 04/13/12 11:56am
Re: Simple Issue in Parallel (Mathematica 7) Alex 04/13/12 2:32pm
Re: Simple Issue in Parallel (Mathematica 7) Peter Pein 04/17/12 04:27am
Next Comment >Help | Reply To Topic