Exemplo n.º 1
0
Slave::Slave() {
	/* ==> read-only variables set by the main chare
	k = kInput;
	thresh = threshInput;
	max_level = 30;

	*/
	CkPrintf("Constructor of the Slave chare # %d is called on processor %d.\n", thisIndex, CkMyPe());

	int n = (int) log2(numProcesses);
	int l = thisIndex;

	Function *function = new Function(n, l, k, thresh, test1);

	mainProxy.done_refine();
}