Actual source code: petscis.h
1: /*
2: An index set is a generalization of a subset of integers. Index sets
3: are used for defining scatters and gathers.
4: */
5: #if !defined(PETSCIS_H)
6: #define PETSCIS_H
7: #include <petscsys.h>
8: #include <petscsftypes.h>
9: #include <petscsectiontypes.h>
10: #include <petscistypes.h>
12: #define IS_FILE_CLASSID 1211218
13: PETSC_EXTERN PetscClassId IS_CLASSID;
15: PETSC_EXTERN PetscErrorCode ISInitializePackage(void);
17: /*J
18: ISType - String with the name of a PETSc index set type
20: Level: beginner
22: .seealso: ISSetType(), IS, ISCreate(), ISRegister()
23: J*/
24: typedef const char* ISType;
25: #define ISGENERAL "general"
26: #define ISSTRIDE "stride"
27: #define ISBLOCK "block"
29: /* Dynamic creation and loading functions */
30: PETSC_EXTERN PetscFunctionList ISList;
31: PETSC_EXTERN PetscErrorCode ISSetType(IS,ISType);
32: PETSC_EXTERN PetscErrorCode ISGetType(IS,ISType*);
33: PETSC_EXTERN PetscErrorCode ISRegister(const char[],PetscErrorCode (*)(IS));
34: PETSC_EXTERN PetscErrorCode ISCreate(MPI_Comm,IS*);
36: PETSC_EXTERN PetscErrorCode ISDestroy(IS*);
37: PETSC_EXTERN PetscErrorCode ISSetPermutation(IS);
38: PETSC_EXTERN PetscErrorCode ISPermutation(IS,PetscBool*);
39: PETSC_EXTERN PetscErrorCode ISSetIdentity(IS);
40: PETSC_EXTERN PetscErrorCode ISIdentity(IS,PetscBool*);
41: PETSC_EXTERN PetscErrorCode ISContiguousLocal(IS,PetscInt,PetscInt,PetscInt*,PetscBool*);
43: /*E
44: ISInfo - Info that may either be computed or set as known for an index set
46: Level: beginner
48: Any additions/changes here MUST also be made in include/petsc/finclude/petscis.h
49: Any additions/changes here must also be made in src/vec/vec/interface/dlregisvec.c in ISInfos[]
51: Developer Notes:
52: Entries that are negative need not be called collectively by all processes.
54: .seealso: ISSetInfo()
55: E*/
56: typedef enum {IS_INFO_MIN = -1,
57: IS_SORTED = 0,
58: IS_UNIQUE = 1,
59: IS_PERMUTATION = 2,
60: IS_INTERVAL = 3,
61: IS_IDENTITY = 4,
62: IS_INFO_MAX = 5} ISInfo;
64: typedef enum {IS_LOCAL, IS_GLOBAL} ISInfoType;
66: PETSC_EXTERN PetscErrorCode ISSetInfo(IS,ISInfo,ISInfoType,PetscBool,PetscBool);
67: PETSC_EXTERN PetscErrorCode ISGetInfo(IS,ISInfo,ISInfoType,PetscBool,PetscBool*);
68: PETSC_EXTERN PetscErrorCode ISClearInfoCache(IS,PetscBool);
69: PETSC_EXTERN PetscErrorCode ISGetIndices(IS,const PetscInt*[]);
70: PETSC_EXTERN PetscErrorCode ISRestoreIndices(IS,const PetscInt*[]);
71: PETSC_EXTERN PetscErrorCode ISGetTotalIndices(IS,const PetscInt*[]);
72: PETSC_EXTERN PetscErrorCode ISRestoreTotalIndices(IS,const PetscInt*[]);
73: PETSC_EXTERN PetscErrorCode ISGetNonlocalIndices(IS,const PetscInt*[]);
74: PETSC_EXTERN PetscErrorCode ISRestoreNonlocalIndices(IS,const PetscInt*[]);
75: PETSC_EXTERN PetscErrorCode ISGetNonlocalIS(IS,IS*);
76: PETSC_EXTERN PetscErrorCode ISRestoreNonlocalIS(IS,IS*);
77: PETSC_EXTERN PetscErrorCode ISGetSize(IS,PetscInt*);
78: PETSC_EXTERN PetscErrorCode ISGetLocalSize(IS,PetscInt*);
79: PETSC_EXTERN PetscErrorCode ISInvertPermutation(IS,PetscInt,IS*);
80: PETSC_EXTERN PetscErrorCode ISView(IS,PetscViewer);
81: PETSC_EXTERN PetscErrorCode ISViewFromOptions(IS,PetscObject,const char[]);
82: PETSC_EXTERN PetscErrorCode ISLoad(IS,PetscViewer);
83: PETSC_EXTERN PetscErrorCode ISEqual(IS,IS,PetscBool*);
84: PETSC_EXTERN PetscErrorCode ISEqualUnsorted(IS,IS,PetscBool *);
85: PETSC_EXTERN PetscErrorCode ISSort(IS);
86: PETSC_EXTERN PetscErrorCode ISSortRemoveDups(IS);
87: PETSC_EXTERN PetscErrorCode ISSorted(IS,PetscBool*);
88: PETSC_EXTERN PetscErrorCode ISDifference(IS,IS,IS*);
89: PETSC_EXTERN PetscErrorCode ISSum(IS,IS,IS*);
90: PETSC_EXTERN PetscErrorCode ISExpand(IS,IS,IS*);
91: PETSC_EXTERN PetscErrorCode ISIntersect(IS,IS,IS*);
92: PETSC_EXTERN PetscErrorCode ISGetMinMax(IS,PetscInt*,PetscInt*);
94: PETSC_EXTERN PetscErrorCode ISLocate(IS,PetscInt,PetscInt*);
95: PETSC_EXTERN PetscErrorCode ISGetPointRange(IS,PetscInt*,PetscInt*,const PetscInt**);
96: PETSC_EXTERN PetscErrorCode ISRestorePointRange(IS,PetscInt*,PetscInt*,const PetscInt**);
97: PETSC_EXTERN PetscErrorCode ISGetPointSubrange(IS,PetscInt,PetscInt,const PetscInt*);
99: PETSC_EXTERN PetscErrorCode ISGetBlockSize(IS,PetscInt*);
100: PETSC_EXTERN PetscErrorCode ISSetBlockSize(IS,PetscInt);
102: PETSC_EXTERN PetscErrorCode ISToGeneral(IS);
104: PETSC_EXTERN PetscErrorCode ISDuplicate(IS,IS*);
105: PETSC_EXTERN PetscErrorCode ISCopy(IS,IS);
106: PETSC_EXTERN PetscErrorCode ISAllGather(IS,IS*);
107: PETSC_EXTERN PetscErrorCode ISComplement(IS,PetscInt,PetscInt,IS*);
108: PETSC_EXTERN PetscErrorCode ISConcatenate(MPI_Comm,PetscInt,const IS[],IS*);
109: PETSC_EXTERN PetscErrorCode ISListToPair(MPI_Comm,PetscInt,IS[],IS*,IS*);
110: PETSC_EXTERN PetscErrorCode ISPairToList(IS,IS,PetscInt*,IS*[]);
111: PETSC_EXTERN PetscErrorCode ISEmbed(IS,IS,PetscBool,IS*);
112: PETSC_EXTERN PetscErrorCode ISSortPermutation(IS,PetscBool,IS*);
113: PETSC_EXTERN PetscErrorCode ISOnComm(IS,MPI_Comm,PetscCopyMode,IS*);
114: PETSC_EXTERN PetscErrorCode ISRenumber(IS,IS,PetscInt*,IS*);
115: PETSC_EXTERN PetscErrorCode ISCreateSubIS(IS,IS,IS*);
117: /* ISGENERAL specific */
118: PETSC_EXTERN PetscErrorCode ISCreateGeneral(MPI_Comm,PetscInt,const PetscInt[],PetscCopyMode,IS*);
119: PETSC_EXTERN PetscErrorCode ISGeneralSetIndices(IS,PetscInt,const PetscInt[],PetscCopyMode);
120: PETSC_EXTERN PetscErrorCode ISGeneralSetIndicesFromMask(IS,PetscInt,PetscInt,const PetscBool[]);
121: PETSC_EXTERN PetscErrorCode ISGeneralFilter(IS,PetscInt,PetscInt);
123: /* ISBLOCK specific */
124: PETSC_EXTERN PetscErrorCode ISCreateBlock(MPI_Comm,PetscInt,PetscInt,const PetscInt[],PetscCopyMode,IS*);
125: PETSC_EXTERN PetscErrorCode ISBlockSetIndices(IS,PetscInt,PetscInt,const PetscInt[],PetscCopyMode);
126: PETSC_EXTERN PetscErrorCode ISBlockGetIndices(IS,const PetscInt*[]);
127: PETSC_EXTERN PetscErrorCode ISBlockRestoreIndices(IS,const PetscInt*[]);
128: PETSC_EXTERN PetscErrorCode ISBlockGetLocalSize(IS,PetscInt*);
129: PETSC_EXTERN PetscErrorCode ISBlockGetSize(IS,PetscInt*);
131: /* ISSTRIDE specific */
132: PETSC_EXTERN PetscErrorCode ISCreateStride(MPI_Comm,PetscInt,PetscInt,PetscInt,IS*);
133: PETSC_EXTERN PetscErrorCode ISStrideSetStride(IS,PetscInt,PetscInt,PetscInt);
134: PETSC_EXTERN PetscErrorCode ISStrideGetInfo(IS,PetscInt*,PetscInt*);
136: /* --------------------------------------------------------------------------*/
137: PETSC_EXTERN PetscClassId IS_LTOGM_CLASSID;
139: /*E
140: ISGlobalToLocalMappingMode - Indicates mapping behavior if global indices are missing
142: IS_GTOLM_MASK - missing global indices are masked by mapping them to a local index of -1
143: IS_GTOLM_DROP - missing global indices are dropped
145: Level: beginner
147: .seealso: ISGlobalToLocalMappingApplyBlock(), ISGlobalToLocalMappingApply()
149: E*/
150: typedef enum {IS_GTOLM_MASK,IS_GTOLM_DROP} ISGlobalToLocalMappingMode;
152: /*J
153: ISLocalToGlobalMappingType - String with the name of a mapping method
155: Level: beginner
157: .seealso: ISLocalToGlobalMappingSetType(), ISLocalToGlobalSetFromOptions()
158: J*/
159: typedef const char* ISLocalToGlobalMappingType;
160: #define ISLOCALTOGLOBALMAPPINGBASIC "basic"
161: #define ISLOCALTOGLOBALMAPPINGHASH "hash"
163: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingSetType(ISLocalToGlobalMapping,ISLocalToGlobalMappingType);
164: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetType(ISLocalToGlobalMapping,ISLocalToGlobalMappingType*);
165: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRegister(const char[],PetscErrorCode (*)(ISLocalToGlobalMapping));
166: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRegisterAll(void);
167: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingCreate(MPI_Comm,PetscInt,PetscInt,const PetscInt[],PetscCopyMode,ISLocalToGlobalMapping*);
168: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingCreateIS(IS,ISLocalToGlobalMapping *);
169: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingCreateSF(PetscSF,PetscInt,ISLocalToGlobalMapping*);
170: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingSetFromOptions(ISLocalToGlobalMapping);
171: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingSetUp(ISLocalToGlobalMapping);
172: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingView(ISLocalToGlobalMapping,PetscViewer);
173: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingViewFromOptions(ISLocalToGlobalMapping,PetscObject,const char[]);
175: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingDestroy(ISLocalToGlobalMapping*);
176: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingApply(ISLocalToGlobalMapping,PetscInt,const PetscInt[],PetscInt[]);
177: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingApplyBlock(ISLocalToGlobalMapping,PetscInt,const PetscInt[],PetscInt[]);
178: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingApplyIS(ISLocalToGlobalMapping,IS,IS*);
179: PETSC_EXTERN PetscErrorCode ISGlobalToLocalMappingApply(ISLocalToGlobalMapping,ISGlobalToLocalMappingMode,PetscInt,const PetscInt[],PetscInt*,PetscInt[]);
180: PETSC_EXTERN PetscErrorCode ISGlobalToLocalMappingApplyBlock(ISLocalToGlobalMapping,ISGlobalToLocalMappingMode,PetscInt,const PetscInt[],PetscInt*,PetscInt[]);
181: PETSC_EXTERN PetscErrorCode ISGlobalToLocalMappingApplyIS(ISLocalToGlobalMapping,ISGlobalToLocalMappingMode,IS,IS*);
182: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetSize(ISLocalToGlobalMapping,PetscInt*);
183: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetNodeInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt**[]);
184: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRestoreNodeInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt**[]);
185: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]);
186: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRestoreInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]);
187: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetBlockInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]);
188: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRestoreBlockInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]);
189: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetIndices(ISLocalToGlobalMapping,const PetscInt**);
190: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRestoreIndices(ISLocalToGlobalMapping,const PetscInt**);
191: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetBlockIndices(ISLocalToGlobalMapping,const PetscInt**);
192: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingRestoreBlockIndices(ISLocalToGlobalMapping,const PetscInt**);
193: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingConcatenate(MPI_Comm,PetscInt,const ISLocalToGlobalMapping[],ISLocalToGlobalMapping*);
194: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingGetBlockSize(ISLocalToGlobalMapping,PetscInt*);
195: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingSetBlockSize(ISLocalToGlobalMapping,PetscInt);
196: PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingDuplicate(ISLocalToGlobalMapping,ISLocalToGlobalMapping*);
198: /* --------------------------------------------------------------------------*/
199: /*E
200: ISColoringType - determines if the coloring is for the entire parallel grid/graph/matrix
201: or for just the local ghosted portion
203: Level: beginner
205: $ IS_COLORING_GLOBAL - does not include the colors for ghost points, this is used when the function
206: $ is called synchronously in parallel. This requires generating a "parallel coloring".
207: $ IS_COLORING_LOCAL - includes colors for ghost points, this is used when the function can be called
208: $ separately on individual processes with the ghost points already filled in. Does not
209: $ require a "parallel coloring", rather each process colors its local + ghost part.
210: $ Using this can result in much less parallel communication. Currently only works
211: $ with DMDA and if you call MatFDColoringSetFunction() with the local function.
213: .seealso: DMCreateColoring()
214: E*/
215: typedef enum {IS_COLORING_GLOBAL,IS_COLORING_LOCAL} ISColoringType;
216: PETSC_EXTERN const char *const ISColoringTypes[];
217: typedef unsigned PETSC_IS_COLORING_VALUE_TYPE ISColoringValue;
218: #define IS_COLORING_MAX PETSC_IS_COLORING_MAX
219: #define MPIU_COLORING_VALUE PETSC_MPIU_IS_COLORING_VALUE_TYPE
220: PETSC_EXTERN PetscErrorCode ISAllGatherColors(MPI_Comm,PetscInt,ISColoringValue*,PetscInt*,ISColoringValue*[]);
222: PETSC_EXTERN PetscErrorCode ISColoringCreate(MPI_Comm,PetscInt,PetscInt,const ISColoringValue[],PetscCopyMode,ISColoring*);
223: PETSC_EXTERN PetscErrorCode ISColoringDestroy(ISColoring*);
224: PETSC_EXTERN PetscErrorCode ISColoringView(ISColoring,PetscViewer);
225: PETSC_EXTERN PetscErrorCode ISColoringViewFromOptions(ISColoring,PetscObject,const char[]);
226: PETSC_EXTERN PetscErrorCode ISColoringGetIS(ISColoring,PetscCopyMode,PetscInt*,IS*[]);
227: PETSC_EXTERN PetscErrorCode ISColoringRestoreIS(ISColoring,PetscCopyMode,IS*[]);
228: PETSC_EXTERN PetscErrorCode ISColoringReference(ISColoring);
229: PETSC_EXTERN PetscErrorCode ISColoringSetType(ISColoring,ISColoringType);
230: PETSC_EXTERN PetscErrorCode ISColoringGetType(ISColoring,ISColoringType*);
231: PETSC_EXTERN PetscErrorCode ISColoringGetColors(ISColoring,PetscInt*,PetscInt*,const ISColoringValue**);
233: /* --------------------------------------------------------------------------*/
234: PETSC_EXTERN PetscErrorCode ISBuildTwoSided(IS,IS,IS*);
235: PETSC_EXTERN PetscErrorCode ISPartitioningToNumbering(IS,IS*);
236: PETSC_EXTERN PetscErrorCode ISPartitioningCount(IS,PetscInt,PetscInt[]);
238: PETSC_EXTERN PetscErrorCode ISCompressIndicesGeneral(PetscInt,PetscInt,PetscInt,PetscInt,const IS[],IS[]);
239: PETSC_EXTERN PetscErrorCode ISCompressIndicesSorted(PetscInt,PetscInt,PetscInt,const IS[],IS[]);
240: PETSC_EXTERN PetscErrorCode ISExpandIndicesGeneral(PetscInt,PetscInt,PetscInt,PetscInt,const IS[],IS[]);
242: struct _n_PetscLayout{
243: MPI_Comm comm;
244: PetscMPIInt size;
245: PetscInt n,N; /* local, global vector size */
246: PetscInt rstart,rend; /* local start, local end + 1 */
247: PetscInt *range; /* the offset of each processor */
248: PetscBool range_alloc; /* should range be freed in Destroy? */
249: PetscInt bs; /* number of elements in each block (generally for multi-component
250: * problems). Defaults to -1 and can be arbitrarily lazy so always use
251: * PetscAbs(map->bs) when accessing directly and expecting result to be
252: * positive. Do NOT multiply above numbers by bs */
253: PetscInt refcnt; /* MPI Vecs obtained with VecDuplicate() and from MatCreateVecs() reuse map of input object */
254: ISLocalToGlobalMapping mapping; /* mapping used in Vec/MatSetValuesLocal() */
255: PetscBool setupcalled; /* Forbid setup more than once */
256: PetscInt oldn,oldN; /* Checking if setup is allowed */
257: PetscInt oldbs; /* And again */
258: };
260: /*@C
261: PetscLayoutFindOwner - Find the owning rank for a global index
263: Not Collective
265: Input Parameters:
266: + map - the layout
267: - idx - global index to find the owner of
269: Output Parameter:
270: . owner - the owning rank
272: Level: developer
274: Fortran Notes:
275: Not available from Fortran
277: @*/
278: static inline PetscErrorCode PetscLayoutFindOwner(PetscLayout map,PetscInt idx,PetscMPIInt *owner)
279: {
280: PetscMPIInt lo = 0,hi,t;
282: *owner = -1; /* GCC erroneously issues warning about possibly uninitialized use when error condition */
283: #if defined(PETSC_USE_DEBUG)
286: #endif
287: hi = map->size;
288: while (hi - lo > 1) {
289: t = lo + (hi - lo) / 2;
290: if (idx < map->range[t]) hi = t;
291: else lo = t;
292: }
293: *owner = lo;
294: return 0;
295: }
297: /*@C
298: PetscLayoutFindOwnerIndex - Find the owning rank and the local index for a global index
300: Not Collective
302: Input Parameters:
303: + map - the layout
304: - idx - global index to find the owner of
306: Output Parameters:
307: + owner - the owning rank
308: - lidx - local index used by the owner for idx
310: Level: developer
312: Fortran Notes:
313: Not available from Fortran
315: @*/
316: static inline PetscErrorCode PetscLayoutFindOwnerIndex(PetscLayout map,PetscInt idx,PetscMPIInt *owner,PetscInt *lidx)
317: {
318: PetscMPIInt lo = 0,hi,t;
320: #if defined(PETSC_USE_DEBUG)
323: #endif
324: hi = map->size;
325: while (hi - lo > 1) {
326: t = lo + (hi - lo) / 2;
327: if (idx < map->range[t]) hi = t;
328: else lo = t;
329: }
330: if (owner) *owner = lo;
331: if (lidx) *lidx = idx - map->range[lo];
332: return 0;
333: }
335: PETSC_EXTERN PetscErrorCode PetscLayoutCreate(MPI_Comm,PetscLayout*);
336: PETSC_EXTERN PetscErrorCode PetscLayoutCreateFromSizes(MPI_Comm,PetscInt,PetscInt,PetscInt,PetscLayout*);
337: PETSC_EXTERN PetscErrorCode PetscLayoutCreateFromRanges(MPI_Comm,const PetscInt[],PetscCopyMode,PetscInt,PetscLayout*);
338: PETSC_EXTERN PetscErrorCode PetscLayoutSetUp(PetscLayout);
339: PETSC_EXTERN PetscErrorCode PetscLayoutDestroy(PetscLayout*);
340: PETSC_EXTERN PetscErrorCode PetscLayoutDuplicate(PetscLayout,PetscLayout*);
341: PETSC_EXTERN PetscErrorCode PetscLayoutReference(PetscLayout,PetscLayout*);
342: PETSC_EXTERN PetscErrorCode PetscLayoutSetLocalSize(PetscLayout,PetscInt);
343: PETSC_EXTERN PetscErrorCode PetscLayoutGetLocalSize(PetscLayout,PetscInt *);
344: PETSC_EXTERN PetscErrorCode PetscLayoutSetSize(PetscLayout,PetscInt);
345: PETSC_EXTERN PetscErrorCode PetscLayoutGetSize(PetscLayout,PetscInt*);
346: PETSC_EXTERN PetscErrorCode PetscLayoutSetBlockSize(PetscLayout,PetscInt);
347: PETSC_EXTERN PetscErrorCode PetscLayoutGetBlockSize(PetscLayout,PetscInt*);
348: PETSC_EXTERN PetscErrorCode PetscLayoutGetRange(PetscLayout,PetscInt*,PetscInt*);
349: PETSC_EXTERN PetscErrorCode PetscLayoutGetRanges(PetscLayout,const PetscInt*[]);
350: PETSC_EXTERN PetscErrorCode PetscLayoutCompare(PetscLayout,PetscLayout,PetscBool*);
351: PETSC_EXTERN PetscErrorCode PetscLayoutSetISLocalToGlobalMapping(PetscLayout,ISLocalToGlobalMapping);
352: PETSC_EXTERN PetscErrorCode PetscLayoutMapLocal(PetscLayout,PetscInt,const PetscInt[],PetscInt*,PetscInt**,PetscInt**);
354: PETSC_EXTERN PetscErrorCode PetscParallelSortInt(PetscLayout, PetscLayout, PetscInt*, PetscInt*);
356: PETSC_EXTERN PetscErrorCode ISGetLayout(IS,PetscLayout*);
357: PETSC_EXTERN PetscErrorCode ISSetLayout(IS,PetscLayout);
359: #endif