ICEACE Model: Closed Economy
1.0.0
Design Documentation of ICEACE Model
|
Holds partitioning functions. More...
Go to the source code of this file.
Functions | |
void | generate_partitions (double cloud_data[], int partitions, int partition_method) |
void | partition_data (int totalnodes, xmachine **agent_list, double cloud_data[], int partition_method) |
void | save_partition_data () |
Save the partition data to a file. More... | |
Holds partitioning functions.
Definition in file partitioning.c.
void generate_partitions | ( | double | cloud_data[], |
int | partitions, | ||
int | partition_method | ||
) |
Definition at line 129 of file partitioning.c.
void partition_data | ( | int | totalnodes, |
xmachine ** | agent_list, | ||
double | cloud_data[], | ||
int | partition_method | ||
) |
Distribute the agents to their partition based on agent positions.
This serial version moves agents from agent_list to the agent list on each node.
totalnodes | Number of partitions to create. |
agent_list | List of agents in the model. |
cloud_data | Limits of agent positions: {xmin, xmax, ymin, ymax} |
Definition at line 256 of file partitioning.c.
void save_partition_data | ( | void | ) |
Save the partition data to a file.
The file is space_partitions.xml and is used by the visualisation application.
Definition at line 269 of file partitioning.c.