// #line 150 public static void arraycopy3( final x10.lang.DoubleReferenceArray a_dest, final x10.lang.region a_destR, final x10.lang.DoubleReferenceArray a_src) { // #line 153 /* template:forloop { */ for (java.util.Iterator p__ = (a_destR).iterator(); p__.hasNext(); ) { final x10.lang.point p = (x10.lang.point) p__.next(); /* Join: { */ /* Join: { */ /* } */ { // #line 155 final x10.lang.place h = /* template:here { */ x10.lang.Runtime.here() /* } */; // #line 156 /* template:Async { */ (x10.lang.Runtime.asPlace(a_src.distribution.get(p))) .runAsync( new x10.runtime.Activity() { public void runX10Task() { { // #line 157 final double d = /* template:array_get { */ ((a_src).get(p)) /* } */; // #line 158 /* template:Async { */ (x10.lang.Runtime.asPlace(h)) .runAsync( new x10.runtime.Activity() { public void runX10Task() { { // #line 158 /* template:array_set { */ (a_dest).set(d, p) /* } */; } } }); /* } */ } } }); /* } */ } /* } */ } /* } */ }
// #line 163 public static void arraycopy4( final x10.lang.DoubleReferenceArray a_dest, final x10.lang.region a_destR, final x10.lang.DoubleReferenceArray a_src, final int a_trans0, final int a_trans1, final int a_trans2) { // #line 169 /* template:forloop { */ for (java.util.Iterator p__ = (a_destR).iterator(); p__.hasNext(); ) { final x10.lang.point p = (x10.lang.point) p__.next(); /* Join: { */ /* Join: { */ /* } */ { // #line 171 final x10.lang.place h = /* template:here { */ x10.lang.Runtime.here() /* } */; // #line 172 /* template:Async { */ (x10.lang.Runtime.asPlace( a_src.distribution.get( /* template:place-check { */ ((x10.lang.point) x10.lang.Runtime.hereCheck(p)) /* } */ .add(x10.lang.point.factory.point(a_trans0, a_trans1, a_trans2))))) .runAsync( new x10.runtime.Activity() { public void runX10Task() { { // #line 173 final double d = /* template:array_get { */ ((a_src) .get( /* template:place-check { */ ((x10.lang.point) x10.lang.Runtime.hereCheck(p)) /* } */ .add( x10.lang.point.factory.point( a_trans0, a_trans1, a_trans2)))) /* } */; // #line 174 /* template:Async { */ (x10.lang.Runtime.asPlace(h)) .runAsync( new x10.runtime.Activity() { public void runX10Task() { { // #line 174 /* template:array_set { */ (a_dest).set(d, p) /* } */; } } }); /* } */ } } }); /* } */ } /* } */ } /* } */ }