Apparently I can't just use a distribution at the time of an array's creation and get away with it. Can anyone suggest where I can look to get a better understanding of how to parallelize computation?
I have this array var regionS: Region{rank==2}; var distS: Dist{rank==2}; var S: Array[Complex](distS); ... regionS = [0..N-1, 0..Mc-1]; distS = Dist.makeBlock(regionS,0); S = Array.makeVar[Complex](distS, ((p):Point) => new Complex ()); with this work for( i = 0; i < N; i++){ for( j = 0;j < Mc; j++){ rawNormPower2 += Math.sqrt(S(i,j).real*S(i,j).real + S(i,j).image*S(i,j).image); } } and this exception x10.lang.BadPlaceException: point (110,0) not defined at (Place 0) in freadK1 x10.lang.BadPlaceException: point (110,0) not defined at (Place 0) at x10.array.BaseArray$23.apply(BaseArray.java:1330) at x10.array.BaseArray$23.apply(BaseArray.java:1) at x10.array.RectRegion.check(RectRegion.java:709) at x10.array.BaseArray.checkPlace(BaseArray.java:715) at x10.array.DistArray.apply(DistArray.java:126) at State.formImage(State.java:634) at State.stage1(State.java:1250) at RUN_knowledgeFormation.main(RUN_knowledgeFormation.java:458) at RUN_knowledgeFormation$Main$1.apply(RUN_knowledgeFormation.java:48) at x10.runtime.Activity.now(Activity.java:222) at x10.runtime.Activity.run(Activity.java:127) at x10.runtime.Worker$3.apply(Worker.java:330) at x10.runtime.impl.java.Runtime.runAt(Runtime.java:96) at x10.runtime.Worker.loop(Worker.java:317) at x10.runtime.Runtime.start(Runtime.java:143) at RUN_knowledgeFormation$Main.main(RUN_knowledgeFormation.java:35) at x10.runtime.impl.java.Runtime.run(Runtime.java:46) at java.lang.Thread.run(Thread.java:613) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users