[mpich-discuss] dynamic 2D array creation error

Soheil Hooshdaran shooshdaran577 at gmail.com
Tue Feb 18 00:44:21 CST 2014


Hello. What's wrong with this code snippet?

1
2
3
4
5
6

       int    **lBucket;

       lBucket = new int*[iWorldSize];//iWorldSize is the nummber of processors
		
 	 for(i=0;i<iWorldSize;++i)
	    lBucket[i] = new int[m];



Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140218/6fe290a1/attachment.html>


More information about the discuss mailing list