diff --git a/src/partition_allocator/graph_structs.h b/src/partition_allocator/graph_structs.h index 5b6eeac531f9dc891b8fa4d1ce1d2401a9958423..7388730a0f492c86e1622030f047ad5054bf8853 100644 --- a/src/partition_allocator/graph_structs.h +++ b/src/partition_allocator/graph_structs.h @@ -211,35 +211,6 @@ typedef struct partition } partition_t; -struct pa_request; -typedef struct pa_request { - int* geometry; - int size; - int conn_type; - bool rotate; - bool elongate; - bool force_contig; -} pa_request_t; - -/** - * pa_node: node within the allocation system. Note that this node is - * hard coded for 1d-3d only! (just have the higher order dims as - * null if you want lower dimensions). - */ -typedef struct pa_node { - /* set if using this node in a partition*/ - bool used; - - /* coordinates */ - int coord[PA_SYSTEM_DIMENSIONS]; - - /* shallow copy of the conf_results. initialized and used as - * array of Lists accessed by dimension, ie conf_result_list[dim] - */ - List* conf_result_list; - -} pa_node_t; - /** creator/destructor fxns */ /** */ diff --git a/src/partition_allocator/partition_allocator.h b/src/partition_allocator/partition_allocator.h index c5c031d7fea2f8bdef02e29908ca4d2ac75ba44c..0fc1c154ac77dbd94bcd36f9646d10f4e9477f7c 100644 --- a/src/partition_allocator/partition_allocator.h +++ b/src/partition_allocator/partition_allocator.h @@ -42,6 +42,35 @@ extern bool _initialized; +struct pa_request; +typedef struct pa_request { + int* geometry; + int size; + int conn_type; + bool rotate; + bool elongate; + bool force_contig; +} pa_request_t; + +/** + * pa_node: node within the allocation system. Note that this node is + * hard coded for 1d-3d only! (just have the higher order dims as + * null if you want lower dimensions). + */ +typedef struct pa_node { + /* set if using this node in a partition*/ + bool used; + + /* coordinates */ + int coord[PA_SYSTEM_DIMENSIONS]; + + /* shallow copy of the conf_results. initialized and used as + * array of Lists accessed by dimension, ie conf_result_list[dim] + */ + List* conf_result_list; + +} pa_node_t; + /** * create a partition request. Note that if the geometry is given, * then size is ignored. If elongate is true, the algorithm will try