00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef EPETRAEXT_ZOLTANQUERY_H
00030 #define EPETRAEXT_ZOLTANQUERY_H
00031
00032 #include "EpetraExt_ConfigDefs.h"
00033
00034 #include <Zoltan_QueryObject.h>
00035
00036 #include <vector>
00037
00038 class Epetra_CrsGraph;
00039
00040 namespace EpetraExt {
00041
00043
00047 class ZoltanQuery : public Zoltan::QueryObject
00048 {
00049
00050 const Epetra_CrsGraph & graph_;
00051 const Epetra_CrsGraph * tgraph_;
00052
00053 std::vector< std::vector<int> > LBProc_;
00054 std::vector< std::vector<int> > LBProc_Trans_;
00055
00056 const bool localEdgesOnly_;
00057
00058 public:
00059
00061
00063 ZoltanQuery( const Epetra_CrsGraph & graph,
00064 const Epetra_CrsGraph * tgraph = 0,
00065 bool localEdgesOnly = false );
00066
00067
00068 int Number_Objects ( void * data,
00069 int * ierr );
00070
00071 void Object_List ( void * data,
00072 int num_gid_entries,
00073 int num_lid_entries,
00074 ZOLTAN_ID_PTR global_ids,
00075 ZOLTAN_ID_PTR local_ids,
00076 int weight_dim,
00077 float * object_weights,
00078 int * ierr );
00079
00080
00081 int Number_Edges ( void * data,
00082 int num_gid_entries,
00083 int num_lid_entries,
00084 ZOLTAN_ID_PTR global_id,
00085 ZOLTAN_ID_PTR local_id,
00086 int * ierr );
00087
00088 void Edge_List ( void * data,
00089 int num_gid_entries,
00090 int num_lid_entries,
00091 ZOLTAN_ID_PTR global_id,
00092 ZOLTAN_ID_PTR local_id,
00093 ZOLTAN_ID_PTR neighbor_global_ids,
00094 int * neighbor_procs,
00095 int weight_dim,
00096 float * edge_weights,
00097 int * ierr );
00098
00099
00100 int Number_HG_Edges ( void * data,
00101 int * ierr );
00102
00103 int Number_HG_Pins ( void * data,
00104 int * ierr );
00105
00106 int HG_Edge_List ( void * data,
00107 int num_gid_entries,
00108 int ewgt_dim,
00109 int nedge,
00110 int maxsize,
00111 int * edge_sizes,
00112 ZOLTAN_ID_PTR edge_verts,
00113 int * edge_procs,
00114 float * edge_weights );
00115
00116 };
00117
00118 }
00119
00120 #endif //EPETRAEXT_ZOLTANQUERY_H
00121