Adding a CkArrayIndex constructor that takes a single int.
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Wed, 18 Apr 2012 18:59:53 +0000 (13:59 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Wed, 18 Apr 2012 18:59:53 +0000 (13:59 -0500)
commit8ff6623aa2a2f48e78559060d227a765546a5dc8
tree11e389f3e1dbb6f9366f641d81500ab6726f6a3b
parent33d88b4e4193fc1d4c9734bc71df3109ac6b3723
Adding a CkArrayIndex constructor that takes a single int.
The constructor is needed in NDMeshStreamer to allow using int
instead of CkArrayIndex1D for savings in communication volume.
The change removes type safety when using multidimensional
array indices in user code. It should be possible to recover
the type safety using a runtime assert on the number of dimensions
in an index in genereated code, although this still needs to be implemented.
src/ck-core/ckarrayindex.h