/usr/include/trilinos/Zoltan_MigrationObject.h is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | // @HEADER
// ************************************************************************
//
// Zoltan_CPP: An Object-Oriented Interface To Zoltan
// Copyright (2001) Sandia Corporation
//
// Questions? Contact Robert J. Hoekstra (rjhoeks@sandia.gov)
//
// ************************************************************************
// @HEADER
#ifndef ZOLTAN_MIGRATIONOBJECT_H_
#define ZOLTAN_MIGRATIONOBJECT_H_
#include "EpetraExt_ConfigDefs.h"
#include <zoltan.h>
namespace Zoltan {
//! Zoltan::MigrationObject: A base class from which the user can derive an application specific support class for Zoltan's migration callback functions.
/*! As with Zoltan, the user only need implement those methods used by Zoltan during their
application executions. If Zoltan calls an unimplemented method, a fatal error will
be generated.
*/
class MigrationObject
{
public:
//@{ \name Setup Methods
//! Supports ZOLTAN_OBJ_SIZE_FN_TYPE
virtual int Object_Size ( void * data,
int num_gid_entries,
int num_lid_entries,
ZOLTAN_ID_PTR global_id,
ZOLTAN_ID_PTR local_id,
int * ierr );
//@}
//@{ \name Migrate Methods
//! Supports ZOLTAN_PRE_MIGRATE_FN_TYPE
virtual void Pre_Migrate ( void * data,
int num_gid_entries,
int num_lid_entries,
int num_import,
ZOLTAN_ID_PTR import_global_ids,
ZOLTAN_ID_PTR import_local_ids,
int * import_procs,
int num_export,
ZOLTAN_ID_PTR export_global_ids,
ZOLTAN_ID_PTR export_local_ids,
int * export_procs,
int * ierr );
//! Supports ZOLTAN_MID_MIGRATE_FN_TYPE
virtual void Mid_Migrate ( void * data,
int num_gid_entries,
int num_lid_entries,
int num_import,
ZOLTAN_ID_PTR import_global_ids,
ZOLTAN_ID_PTR import_local_ids,
int * import_procs,
int num_export,
ZOLTAN_ID_PTR export_global_ids,
ZOLTAN_ID_PTR export_local_ids,
int * export_procs,
int * ierr );
//! Supports ZOLTAN_POST_MIGRATE_FN_TYPE
virtual void Post_Migrate ( void * data,
int num_gid_entries,
int num_lid_entries,
int num_import,
ZOLTAN_ID_PTR import_global_ids,
ZOLTAN_ID_PTR import_local_ids,
int * import_procs,
int num_export,
ZOLTAN_ID_PTR export_global_ids,
ZOLTAN_ID_PTR export_local_ids,
int * export_procs,
int * ierr );
//@}
//@{ \name Pack/Unpack Methods
//! Supports ZOLTAN_PACK_OBJ_FN_TYPE
virtual void Pack_Object ( void * data,
int num_gid_entries,
int num_lid_entries,
ZOLTAN_ID_PTR global_id,
ZOLTAN_ID_PTR local_id,
int destination_processor,
int size,
char * buffer,
int * ierr );
//! Supports ZOLTAN_UNPACK_OBJ_FN_TYPE
virtual void Unpack_Object ( void * data,
int num_gid_entries,
ZOLTAN_ID_PTR global_id,
int size,
char * buffer,
int * ierr );
//@}
};
} //namespace Zoltan
#endif
|