-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Rationale
The original version of TCelSim fixes the number of cells as the compile-time constant value ncells. In parallel execution, the set of cells will be distributed across images. Because the number of images will not necessarily be known at compile time, we need to allow for the number of cells in a given image to be determined at runtime. For this reason, arrays that have ncells as one dimension's extent need to be dynamically allocated.
Steps
- Add the
allocatableattribute to the following array declarations in themainprogram:random_number_table,x,y, andz. - Add an
allocatestatement in themainprogram for each of the above arrays
Metadata
Metadata
Assignees
Labels
No labels