|
EpetraExt Development
|
00001 /* 00002 //@HEADER 00003 // *********************************************************************** 00004 // 00005 // EpetraExt: Epetra Extended - Linear Algebra Services Package 00006 // Copyright (2011) Sandia Corporation 00007 // 00008 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 // the U.S. Government retains certain rights in this software. 00010 // 00011 // Redistribution and use in source and binary forms, with or without 00012 // modification, are permitted provided that the following conditions are 00013 // met: 00014 // 00015 // 1. Redistributions of source code must retain the above copyright 00016 // notice, this list of conditions and the following disclaimer. 00017 // 00018 // 2. Redistributions in binary form must reproduce the above copyright 00019 // notice, this list of conditions and the following disclaimer in the 00020 // documentation and/or other materials provided with the distribution. 00021 // 00022 // 3. Neither the name of the Corporation nor the names of the 00023 // contributors may be used to endorse or promote products derived from 00024 // this software without specific prior written permission. 00025 // 00026 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY 00027 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00028 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00029 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE 00030 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00031 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00032 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00033 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00034 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00035 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00036 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00037 // 00038 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 00039 // 00040 // *********************************************************************** 00041 //@HEADER 00042 */ 00043 00044 //------------------------------------------------------------------------- 00045 // Filename : $Zoltan_MigrationObject.C$ 00046 // 00047 // Purpose : Base Class for dynamic versions of migration 00048 // functions to be used by Zoltan. The application 00049 // requires a class derived from this base to 00050 // be instantiated and registered with the 00051 // Zoltan_LoadBalance object. 00052 // 00053 // Special Notes : 00054 // 00055 // Creator : Robert J. Hoekstra 00056 // 00057 // Creation Date : 08/04/2000 00058 // 00059 // Revision Information: 00060 // --------------------- 00061 // 00062 // Revision Number: $Revision$ 00063 // 00064 // Revision Date : $Date$ 00065 // 00066 // Current Owner : $Author$ 00067 //------------------------------------------------------------------------- 00068 00069 #include <Zoltan_MigrationObject.h> 00070 00071 #include <iostream> 00072 00073 EPETRAEXT_DEPRECATED 00074 int Zoltan::MigrationObject::Object_Size ( void * data, 00075 int num_gid_entries, 00076 int num_lid_entries, 00077 ZOLTAN_ID_PTR global_id, 00078 ZOLTAN_ID_PTR local_id, 00079 int * ierr ) 00080 { 00081 std::cout << "Error: int Zoltan_MigrationObject::Object_Size( void *, " 00082 << "int, int, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int * )" 00083 << " must be implemented." << std::endl; 00084 00085 *ierr = ZOLTAN_FATAL; 00086 00087 return 0; 00088 } 00089 00090 EPETRAEXT_DEPRECATED 00091 void Zoltan::MigrationObject::Pre_Migrate ( void * data, 00092 int num_gid_entries, 00093 int num_lid_entries, 00094 int num_import, 00095 ZOLTAN_ID_PTR import_global_ids, 00096 ZOLTAN_ID_PTR import_local_ids, 00097 int * import_procs, 00098 int num_export, 00099 ZOLTAN_ID_PTR export_global_ids, 00100 ZOLTAN_ID_PTR export_local_ids, 00101 int * export_procs, 00102 int * ierr ) 00103 { 00104 std::cout << "Error: int Zoltan_MigrationObject::Pre_Migrate( void *, " 00105 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00106 << "ZOLTAN_ID_PTR, int *, int ) " 00107 << "must be implemented." << std::endl; 00108 00109 *ierr = ZOLTAN_FATAL; 00110 } 00111 00112 EPETRAEXT_DEPRECATED 00113 void Zoltan::MigrationObject::Mid_Migrate ( void * data, 00114 int num_gid_entries, 00115 int num_lid_entries, 00116 int num_import, 00117 ZOLTAN_ID_PTR import_global_ids, 00118 ZOLTAN_ID_PTR import_local_ids, 00119 int * import_procs, 00120 int num_export, 00121 ZOLTAN_ID_PTR export_global_ids, 00122 ZOLTAN_ID_PTR export_local_ids, 00123 int * export_procs, 00124 int * ierr ) 00125 { 00126 std::cout << "Error: int Zoltan_MigrationObject::Mid_Migrate( void *, " 00127 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00128 << "ZOLTAN_ID_PTR, int *, int ) " 00129 << "must be implemented." << std::endl; 00130 00131 *ierr = ZOLTAN_FATAL; 00132 } 00133 00134 EPETRAEXT_DEPRECATED 00135 void Zoltan::MigrationObject::Post_Migrate ( void * data, 00136 int num_gid_entries, 00137 int num_lid_entries, 00138 int num_import, 00139 ZOLTAN_ID_PTR import_global_ids, 00140 ZOLTAN_ID_PTR import_local_ids, 00141 int * import_procs, 00142 int num_export, 00143 ZOLTAN_ID_PTR export_global_ids, 00144 ZOLTAN_ID_PTR export_local_ids, 00145 int * export_procs, 00146 int * ierr ) 00147 { 00148 std::cout << "Error: int Zoltan_MigrationObject::Post_Migrate( void *, " 00149 << "int, int, int ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int *, int, ZOLTAN_ID_PTR, " 00150 << "ZOLTAN_ID_PTR, int *, int ) " 00151 << "must be implemented." << std::endl; 00152 00153 *ierr = ZOLTAN_FATAL; 00154 } 00155 00156 EPETRAEXT_DEPRECATED 00157 void Zoltan::MigrationObject::Pack_Object ( void * data, 00158 int num_gid_entries, 00159 int num_lid_entries, 00160 ZOLTAN_ID_PTR global_id, 00161 ZOLTAN_ID_PTR local_id, 00162 int destination_processor, 00163 int size, 00164 char * buffer, 00165 int * ierr ) 00166 { 00167 std::cout << "Error: int Zoltan_MigrationObject::Pack_Object( void *, " 00168 << "int, int, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR, int, char *, int * ) " 00169 << "must be implemented." << std::endl; 00170 00171 *ierr = ZOLTAN_FATAL; 00172 } 00173 00174 EPETRAEXT_DEPRECATED 00175 void Zoltan::MigrationObject::Unpack_Object ( void * data, 00176 int num_gid_entries, 00177 ZOLTAN_ID_PTR global_id, 00178 int size, 00179 char * buffer, 00180 int * ierr ) 00181 { 00182 std::cout << "Error: int Zoltan_MigrationObject::Unpack_Object( void *, " 00183 << "int, ZOLTAN_ID_PTR, int, char *, int * )" 00184 << " must be implemented." << std::endl; 00185 00186 *ierr = ZOLTAN_FATAL; 00187 }
1.7.4