ICEACE Model: Closed Economy  1.0.0
Design Documentation of ICEACE Model
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
partitioning.c File Reference

Holds partitioning functions. More...

#include "header.h"
#include "low_primes.h"
Include dependency graph for partitioning.c:

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...
 

Detailed Description

Holds partitioning functions.

Definition in file partitioning.c.

Function Documentation

void generate_partitions ( double  cloud_data[],
int  partitions,
int  partition_method 
)

Definition at line 129 of file partitioning.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
totalnodesNumber of partitions to create.
agent_listList of agents in the model.
cloud_dataLimits of agent positions: {xmin, xmax, ymin, ymax}
Author
DJ Worth CCLRC
Date
2007

Definition at line 256 of file partitioning.c.

Here is the caller graph for this function:

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.

Here is the caller graph for this function: