|
EpetraExt Development
|
00001 //------------------------------------------------------------------------- 00002 // Copyright Notice 00003 // 00004 // Copyright (c) 2000, Sandia Corporation, Albuquerque, NM. 00005 //------------------------------------------------------------------------- 00006 00007 //------------------------------------------------------------------------- 00008 // Filename : $Zoltan_MigrationObject.C$ 00009 // 00010 // Purpose : Base Class for dynamic versions of migration 00011 // functions to be used by Zoltan. The application 00012 // requires a class derived from this base to 00013 // be instantiated and registered with the 00014 // Zoltan_LoadBalance object. 00015 // 00016 // Special Notes : 00017 // 00018 // Creator : Robert J. Hoekstra 00019 // 00020 // Creation Date : 08/04/2000 00021 // 00022 // Revision Information: 00023 // --------------------- 00024 // 00025 // Revision Number: $Revision$ 00026 // 00027 // Revision Date : $Date$ 00028 // 00029 // Current Owner : $Author$ 00030 //------------------------------------------------------------------------- 00031 00032 #include <Zoltan_MigrationObject.h> 00033 00034 #include <iostream> 00035 00036 int Zoltan::MigrationObject::Object_Size ( void * data, 00037 int num_gid_entries, 00038 int num_lid_entries, 00039 ZOLTAN_ID_PTR global_id, 00040 ZOLTAN_ID_PTR local_id, 00041 int * ierr ) 00042 { 00043 std::cout << "Error: int Zoltan_MigrationObject::Object_Size( void *, " 00044 << "int, int, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int * )" 00045 << " must be implemented." << std::endl; 00046 00047 *ierr = ZOLTAN_FATAL; 00048 00049 return 0; 00050 } 00051 00052 void Zoltan::MigrationObject::Pre_Migrate ( void * data, 00053 int num_gid_entries, 00054 int num_lid_entries, 00055 int num_import, 00056 ZOLTAN_ID_PTR import_global_ids, 00057 ZOLTAN_ID_PTR import_local_ids, 00058 int * import_procs, 00059 int num_export, 00060 ZOLTAN_ID_PTR export_global_ids, 00061 ZOLTAN_ID_PTR export_local_ids, 00062 int * export_procs, 00063 int * ierr ) 00064 { 00065 std::cout << "Error: int Zoltan_MigrationObject::Pre_Migrate( void *, " 00066 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00067 << "ZOLTAN_ID_PTR, int *, int ) " 00068 << "must be implemented." << std::endl; 00069 00070 *ierr = ZOLTAN_FATAL; 00071 } 00072 00073 void Zoltan::MigrationObject::Mid_Migrate ( void * data, 00074 int num_gid_entries, 00075 int num_lid_entries, 00076 int num_import, 00077 ZOLTAN_ID_PTR import_global_ids, 00078 ZOLTAN_ID_PTR import_local_ids, 00079 int * import_procs, 00080 int num_export, 00081 ZOLTAN_ID_PTR export_global_ids, 00082 ZOLTAN_ID_PTR export_local_ids, 00083 int * export_procs, 00084 int * ierr ) 00085 { 00086 std::cout << "Error: int Zoltan_MigrationObject::Mid_Migrate( void *, " 00087 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00088 << "ZOLTAN_ID_PTR, int *, int ) " 00089 << "must be implemented." << std::endl; 00090 00091 *ierr = ZOLTAN_FATAL; 00092 } 00093 00094 void Zoltan::MigrationObject::Post_Migrate ( void * data, 00095 int num_gid_entries, 00096 int num_lid_entries, 00097 int num_import, 00098 ZOLTAN_ID_PTR import_global_ids, 00099 ZOLTAN_ID_PTR import_local_ids, 00100 int * import_procs, 00101 int num_export, 00102 ZOLTAN_ID_PTR export_global_ids, 00103 ZOLTAN_ID_PTR export_local_ids, 00104 int * export_procs, 00105 int * ierr ) 00106 { 00107 std::cout << "Error: int Zoltan_MigrationObject::Post_Migrate( void *, " 00108 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00109 << "ZOLTAN_ID_PTR, int *, int ) " 00110 << "must be implemented." << std::endl; 00111 00112 *ierr = ZOLTAN_FATAL; 00113 } 00114 00115 void Zoltan::MigrationObject::Pack_Object ( void * data, 00116 int num_gid_entries, 00117 int num_lid_entries, 00118 ZOLTAN_ID_PTR global_id, 00119 ZOLTAN_ID_PTR local_id, 00120 int destination_processor, 00121 int size, 00122 char * buffer, 00123 int * ierr ) 00124 { 00125 std::cout << "Error: int Zoltan_MigrationObject::Pack_Object( void *, " 00126 << "int, int, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int, char *, int * ) " 00127 << "must be implemented." << std::endl; 00128 00129 *ierr = ZOLTAN_FATAL; 00130 } 00131 00132 void Zoltan::MigrationObject::Unpack_Object ( void * data, 00133 int num_gid_entries, 00134 ZOLTAN_ID_PTR global_id, 00135 int size, 00136 char * buffer, 00137 int * ierr ) 00138 { 00139 std::cout << "Error: int Zoltan_MigrationObject::Unpack_Object( void *, " 00140 << "int, ZOLTAN_ID_PTR, int, char *, int * )" 00141 << " must be implemented." << std::endl; 00142 00143 *ierr = ZOLTAN_FATAL; 00144 }
1.7.4