20 #include "order/order_internal.h"
57 pastix_graph_t *graph,
67 iparm = pastix_data->
iparm;
74 pastix_print( procnum, 0, OUT_ORDER_METHOD,
"Load" );
82 if ( myorder != NULL ) {
83 assert( myorder != NULL );
84 assert( myorder->
vertnbr == n );
88 if ( (myorder == NULL) || (myorder->
permtab == NULL) ) {
89 if ( (myorder == NULL) || (myorder->
peritab == NULL) ) {
91 pastix_print( procnum, 0, OUT_ORDER_METHOD,
"Personal (identity)" );
93 for( i=0; i<n; i++ ) {
100 pastix_print( procnum, 0, OUT_ORDER_METHOD,
"Personal (from myorder->peritab)" );
103 for( i=0; i<n; i++ ) {
110 if ( myorder->
peritab == NULL ) {
112 pastix_print( procnum, 0, OUT_ORDER_METHOD,
"Personal (from myorder->permtab)" );
115 for( i=0; i<n; i++) {
122 pastix_print( procnum, 0, OUT_ORDER_METHOD,
"Personal (myorder->permtab/peritab)" );
131 memFree_null( ordemesh->
rangtab );
133 memFree_null( ordemesh->
treetab );
136 if ( myorder != NULL ) {
137 assert( !( (myorder->
rangtab == NULL) && (myorder->
treetab != NULL) ) );
138 if ( myorder->
rangtab != NULL )
144 if ( myorder->
treetab != NULL )
BEGIN_C_DECLS typedef int pastix_int_t
int pastixOrderAlloc(pastix_order_t *ordeptr, pastix_int_t vertnbr, pastix_int_t cblknbr)
Allocate the order structure.
void pastixOrderBase(pastix_order_t *ordeptr, pastix_int_t baseval)
This routine sets the base of the given ordering structure to the given base value.
int orderComputePersonal(pastix_data_t *pastix_data, pastix_graph_t *graph, pastix_order_t *myorder)
Computes the personal ordering of the PaStiX instance.
int pastixOrderLoad(const pastix_data_t *pastix_data, pastix_order_t *ordeptr)
Load an ordering from a file.
pastix_order_t * ordemesh
Main PaStiX data structure.