ParrallelDo and set::noval
- To: mathgroup at smc.vnet.net
- Subject: [mg102562] ParrallelDo and set::noval
- From: guerom00 <guerom00 at gmail.com>
- Date: Fri, 14 Aug 2009 05:58:41 -0400 (EDT)
Hello everyone :) I copy/paste =93as it is=94 a bit of code I have : GridInR = TransDipPiPi // {2 #1} & @@@ # & // Flatten // DeleteDuplicates // Sort; Mu1DoubletPi = Array[Null, {Length[GridInR]}]; DistributeDefinitions[GridInR, Mu1DoubletPi, TransDipPiPi] ParallelDo[ iroot = 0; rr = GridInR[[i]]; Which[ 4 <= rr <= 50, iroot = 1 ]; Mu1DoubletPi[[i]] = TransDipPiPi // Select[#, 2 #[[1]] == GridInR[[i]] && #[[2]] == iroot && #[[3]] == iroot &] & // {2 #1, #6} & @@@ # & // #[[1]] &; , {i, 1, Length[GridInR]}] And when I execute this, I receive a =93Set::noval: Symbol Mu1DoubletPi in part assignment does not have an immediate value.=94 I understand the meaning of this error message but I don't understand why I obtain it ! I make sure to initialize my Mu1DoubletPi list and to distribute the definition of all the needed symbols across the kernels=85 What do I miss here ? TIA Mathematica 7.0.1 on Mac OS X 10.5.8.