12eac72dbSBarry Smith /* 2f8256253SLois Curfman McInnes An index set is a generalization of a subset of integers. Index sets 3f8256253SLois Curfman McInnes are used for defining scatters and gathers. 42eac72dbSBarry Smith */ 50a835dfdSSatish Balay #if !defined(__PETSCIS_H) 60a835dfdSSatish Balay #define __PETSCIS_H 7d382aafbSBarry Smith #include "petscsys.h" 8e9fa29b7SSatish Balay PETSC_EXTERN_CXX_BEGIN 92eac72dbSBarry Smith 100700a824SBarry Smith extern PETSCVEC_DLLEXPORT PetscClassId IS_CLASSID; 11f0479e8cSBarry Smith 122b6de112SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISInitializePackage(const char[]); 132b6de112SBarry Smith 145c20da3cSBarry Smith /*S 15f22f69f0SBarry Smith IS - Abstract PETSc object that allows indexing. 165c20da3cSBarry Smith 175c20da3cSBarry Smith Level: beginner 185c20da3cSBarry Smith 195c20da3cSBarry Smith Concepts: indexing, stride 205c20da3cSBarry Smith 215c20da3cSBarry Smith .seealso: ISCreateGeneral(), ISCreateBlock(), ISCreateStride(), ISGetIndices(), ISDestroy() 225c20da3cSBarry Smith S*/ 23f09e8eb9SSatish Balay typedef struct _p_IS* IS; 242eac72dbSBarry Smith 2527bdab1eSBarry Smith /*E 2627bdab1eSBarry Smith ISType - String with the name of a PETSc vector or the creation function 2727bdab1eSBarry Smith with an optional dynamic library name, for example 2827bdab1eSBarry Smith http://www.mcs.anl.gov/petsc/lib.a:myveccreate() 2927bdab1eSBarry Smith 3027bdab1eSBarry Smith Level: beginner 3127bdab1eSBarry Smith 3227bdab1eSBarry Smith .seealso: ISSetType(), IS 3327bdab1eSBarry Smith E*/ 3427bdab1eSBarry Smith #define ISType char* 3527bdab1eSBarry Smith #define ISGENERAL "general" 3627bdab1eSBarry Smith #define ISSTRIDE "stride" 3727bdab1eSBarry Smith #define ISBLOCK "block" 3827bdab1eSBarry Smith 3927bdab1eSBarry Smith /* Dynamic creation and loading functions */ 4027bdab1eSBarry Smith extern PetscFList ISList; 4127bdab1eSBarry Smith extern PetscBool ISRegisterAllCalled; 4227bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSetType(IS, const ISType); 4327bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGetType(IS, const ISType *); 4427bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISRegister(const char[],const char[],const char[],PetscErrorCode (*)(IS)); 4527bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISRegisterAll(const char []); 4627bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISRegisterDestroy(void); 4727bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCreate(MPI_Comm,IS*); 4827bdab1eSBarry Smith 4927bdab1eSBarry Smith /*MC 5027bdab1eSBarry Smith ISRegisterDynamic - Adds a new vector component implementation 5127bdab1eSBarry Smith 5227bdab1eSBarry Smith Synopsis: 5327bdab1eSBarry Smith PetscErrorCode ISRegisterDynamic(const char *name, const char *path, const char *func_name, PetscErrorCode (*create_func)(IS)) 5427bdab1eSBarry Smith 5527bdab1eSBarry Smith Not Collective 5627bdab1eSBarry Smith 5727bdab1eSBarry Smith Input Parameters: 5827bdab1eSBarry Smith + name - The name of a new user-defined creation routine 5927bdab1eSBarry Smith . path - The path (either absolute or relative) of the library containing this routine 6027bdab1eSBarry Smith . func_name - The name of routine to create method context 6127bdab1eSBarry Smith - create_func - The creation routine itself 6227bdab1eSBarry Smith 6327bdab1eSBarry Smith Notes: 6427bdab1eSBarry Smith ISRegisterDynamic() may be called multiple times to add several user-defined vectors 6527bdab1eSBarry Smith 6627bdab1eSBarry Smith If dynamic libraries are used, then the fourth input argument (routine_create) is ignored. 6727bdab1eSBarry Smith 6827bdab1eSBarry Smith Sample usage: 6927bdab1eSBarry Smith .vb 7027bdab1eSBarry Smith ISRegisterDynamic("my_is","/home/username/my_lib/lib/libO/solaris/libmy.a", "MyIStorCreate", MyIStorCreate); 7127bdab1eSBarry Smith .ve 7227bdab1eSBarry Smith 7327bdab1eSBarry Smith Then, your vector type can be chosen with the procedural interface via 7427bdab1eSBarry Smith .vb 7527bdab1eSBarry Smith ISCreate(MPI_Comm, IS *); 7627bdab1eSBarry Smith ISSetType(IS,"my_vector_name"); 7727bdab1eSBarry Smith .ve 7827bdab1eSBarry Smith or at runtime via the option 7927bdab1eSBarry Smith .vb 8027bdab1eSBarry Smith -vec_type my_vector_name 8127bdab1eSBarry Smith .ve 8227bdab1eSBarry Smith 8327bdab1eSBarry Smith Notes: $PETSC_ARCH occuring in pathname will be replaced with appropriate values. 8427bdab1eSBarry Smith If your function is not being put into a shared library then use ISRegister() instead 8527bdab1eSBarry Smith 8627bdab1eSBarry Smith Level: advanced 8727bdab1eSBarry Smith 8827bdab1eSBarry Smith .keywords: IS, register 8927bdab1eSBarry Smith .seealso: ISRegisterAll(), ISRegisterDestroy(), ISRegister() 9027bdab1eSBarry Smith M*/ 9127bdab1eSBarry Smith #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 9227bdab1eSBarry Smith #define ISRegisterDynamic(a,b,c,d) ISRegister(a,b,c,0) 9327bdab1eSBarry Smith #else 9427bdab1eSBarry Smith #define ISRegisterDynamic(a,b,c,d) ISRegister(a,b,c,d) 9527bdab1eSBarry Smith #endif 9627bdab1eSBarry Smith 97639f9d9dSBarry Smith /* 98639f9d9dSBarry Smith Default index set data structures that PETSc provides. 99639f9d9dSBarry Smith */ 10070b3c8c7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCreateGeneral(MPI_Comm,PetscInt,const PetscInt[],PetscCopyMode,IS *); 10170b3c8c7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGeneralSetIndices(IS,PetscInt,const PetscInt[],PetscCopyMode); 102deff0451SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCreateBlock(MPI_Comm,PetscInt,PetscInt,const PetscInt[],PetscCopyMode,IS *); 103deff0451SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockSetIndices(IS,PetscInt,PetscInt,const PetscInt[],PetscCopyMode); 1040c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCreateStride(MPI_Comm,PetscInt,PetscInt,PetscInt,IS *); 10527bdab1eSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISStrideSetStride(IS,PetscInt,PetscInt,PetscInt); 1064b0e389bSBarry Smith 1070c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISDestroy(IS); 1084b0e389bSBarry Smith 1090c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSetPermutation(IS); 110ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISPermutation(IS,PetscBool *); 1110c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSetIdentity(IS); 112ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISIdentity(IS,PetscBool *); 11308480c60SBarry Smith 1145d0c19d7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGetIndices(IS,const PetscInt *[]); 1155d0c19d7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISRestoreIndices(IS,const PetscInt *[]); 1160c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGetSize(IS,PetscInt *); 1170c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGetLocalSize(IS,PetscInt *); 1180c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISInvertPermutation(IS,PetscInt,IS*); 1190c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISView(IS,PetscViewer); 120ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISEqual(IS,IS,PetscBool *); 1210c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSort(IS); 122ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSorted(IS,PetscBool *); 1230c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISDifference(IS,IS,IS*); 1249a05e725SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISSum(IS,IS,IS*); 1256ab11f9bSSatish Balay EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISExpand(IS,IS,IS*); 126612dd529SBarry Smith 127ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlock(IS,PetscBool *); 1285d0c19d7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockGetIndices(IS,const PetscInt *[]); 1295d0c19d7SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockRestoreIndices(IS,const PetscInt *[]); 1304c31538fSLisandro Dalcin EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockGetLocalSize(IS,PetscInt *); 1310c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockGetSize(IS,PetscInt *); 1320c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISBlockGetBlockSize(IS,PetscInt *); 133c16cb8f2SBarry Smith 134ace3abfcSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISStride(IS,PetscBool *); 1350c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISStrideGetInfo(IS,PetscInt *,PetscInt*); 136c16cb8f2SBarry Smith 137ccbec567SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISToGeneral(IS); 13838f40f24SLois Curfman McInnes 1390c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISDuplicate(IS,IS*); 14039d8913bSJed Brown EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCopy(IS,IS); 1410c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISAllGather(IS,IS*); 142edf189efSBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISComplement(IS,PetscInt,PetscInt,IS*); 1430c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISAllGatherIndices(MPI_Comm,PetscInt,const PetscInt[],PetscInt*,PetscInt*[]); 144d64ed03dSBarry Smith 14556cd22aeSBarry Smith /* --------------------------------------------------------------------------*/ 1460700a824SBarry Smith extern PETSCVEC_DLLEXPORT PetscClassId IS_LTOGM_CLASSID; 14756cd22aeSBarry Smith 1485c20da3cSBarry Smith /*S 149d9ffb7b8SBarry Smith ISLocalToGlobalMapping - mappings from an arbitrary 15090f02eecSBarry Smith local ordering from 0 to n-1 to a global PETSc ordering 151d4bb536fSBarry Smith used by a vector or matrix. 152d4bb536fSBarry Smith 1535c20da3cSBarry Smith Level: intermediate 1545c20da3cSBarry Smith 155d4bb536fSBarry Smith Note: mapping from Local to Global is scalable; but Global 156eec0b4cfSBarry Smith to Local may not be if the range of global values represented locally 157d4bb536fSBarry Smith is very large. 15874637425SBarry Smith 15974637425SBarry Smith Note: the ISLocalToGlobalMapping is actually a private object; it is included 16074637425SBarry Smith here for the MACRO ISLocalToGlobalMappingApply() to allow it to be inlined since 16174637425SBarry Smith it is used so often. 16274637425SBarry Smith 1635c20da3cSBarry Smith .seealso: ISLocalToGlobalMappingCreate() 1645c20da3cSBarry Smith S*/ 16574637425SBarry Smith struct _p_ISLocalToGlobalMapping{ 166011f5a45SSatish Balay PETSCHEADER(int); 16732dcc486SBarry Smith PetscInt n; /* number of local indices */ 16832dcc486SBarry Smith PetscInt *indices; /* global index of each local index */ 16932dcc486SBarry Smith PetscInt globalstart; /* first global referenced in indices */ 17032dcc486SBarry Smith PetscInt globalend; /* last + 1 global referenced in indices */ 17132dcc486SBarry Smith PetscInt *globals; /* local index for each global index between start and end */ 17274637425SBarry Smith }; 173f09e8eb9SSatish Balay typedef struct _p_ISLocalToGlobalMapping* ISLocalToGlobalMapping; 1745c20da3cSBarry Smith 1755c20da3cSBarry Smith /*E 1765c20da3cSBarry Smith ISGlobalToLocalMappingType - Indicates if missing global indices are 1775c20da3cSBarry Smith 1785c20da3cSBarry Smith IS_GTOLM_MASK - missing global indices are replaced with -1 1795c20da3cSBarry Smith IS_GTOLM_DROP - missing global indices are dropped 1805c20da3cSBarry Smith 1815c20da3cSBarry Smith Level: beginner 1825c20da3cSBarry Smith 1835c20da3cSBarry Smith .seealso: ISGlobalToLocalMappingApply() 1845c20da3cSBarry Smith 1855c20da3cSBarry Smith E*/ 186987e4450SSatish Balay typedef enum {IS_GTOLM_MASK,IS_GTOLM_DROP} ISGlobalToLocalMappingType; 18790f02eecSBarry Smith 188d5ad8652SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingCreate(MPI_Comm,PetscInt,const PetscInt[],PetscCopyMode,ISLocalToGlobalMapping*); 1890c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingCreateIS(IS,ISLocalToGlobalMapping *); 1900c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingView(ISLocalToGlobalMapping,PetscViewer); 1910c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingDestroy(ISLocalToGlobalMapping); 1920c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingApplyIS(ISLocalToGlobalMapping,IS,IS*); 1930c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISGlobalToLocalMappingApply(ISLocalToGlobalMapping,ISGlobalToLocalMappingType,PetscInt,const PetscInt[],PetscInt*,PetscInt[]); 1940c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingGetSize(ISLocalToGlobalMapping,PetscInt*); 1950c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingGetInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]); 1960c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingRestoreInfo(ISLocalToGlobalMapping,PetscInt*,PetscInt*[],PetscInt*[],PetscInt**[]); 1970c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISLocalToGlobalMappingBlock(ISLocalToGlobalMapping,PetscInt,ISLocalToGlobalMapping*); 19874637425SBarry Smith 199d0f46423SBarry Smith PETSC_STATIC_INLINE PetscErrorCode ISLocalToGlobalMappingApply(ISLocalToGlobalMapping mapping,PetscInt N,const PetscInt in[],PetscInt out[]) 200d0f46423SBarry Smith { 20153ef36baSBarry Smith PetscInt i,Nmax = mapping->n; 20253ef36baSBarry Smith const PetscInt *idx = mapping->indices; 203b7827b44SJed Brown PetscFunctionBegin; 2041620fd73SBarry Smith for (i=0; i<N; i++) { 2051620fd73SBarry Smith if (in[i] < 0) {out[i] = in[i]; continue;} 206e32f2f54SBarry Smith if (in[i] >= Nmax) SETERRQ3(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Local index %D too large %D (max) at %D",in[i],Nmax,i); 2071620fd73SBarry Smith out[i] = idx[in[i]]; 2081620fd73SBarry Smith } 2091620fd73SBarry Smith PetscFunctionReturn(0); 21074637425SBarry Smith } 21190f02eecSBarry Smith 21256cd22aeSBarry Smith /* --------------------------------------------------------------------------*/ 213b9617806SBarry Smith /*E 214b9617806SBarry Smith ISColoringType - determines if the coloring is for the entire parallel grid/graph/matrix 215b9617806SBarry Smith or for just the local ghosted portion 216b9617806SBarry Smith 217b9617806SBarry Smith Level: beginner 218b9617806SBarry Smith 2198ee2e534SBarry Smith $ IS_COLORING_GLOBAL - does not include the colors for ghost points, this is used when the function 2208ee2e534SBarry Smith $ is called synchronously in parallel. This requires generating a "parallel coloring". 2218ee2e534SBarry Smith $ IS_COLORING_GHOSTED - includes colors for ghost points, this is used when the function can be called 2228ee2e534SBarry Smith $ seperately on individual processes with the ghost points already filled in. Does not 2238ee2e534SBarry Smith $ require a "parallel coloring", rather each process colors its local + ghost part. 2248ee2e534SBarry Smith $ Using this can result in much less parallel communication. In the paradigm of 225*9a42bb27SBarry Smith $ DMGetLocalVector() and DMGetGlobalVector() this could be called IS_COLORING_LOCAL 22673d7d85fSBarry Smith 227b9617806SBarry Smith .seealso: DAGetColoring() 228b9617806SBarry Smith E*/ 2298ee2e534SBarry Smith typedef enum {IS_COLORING_GLOBAL,IS_COLORING_GHOSTED} ISColoringType; 230a34d58ebSBarry Smith extern const char *ISColoringTypes[]; 2316c09f170SSatish Balay typedef unsigned PETSC_IS_COLOR_VALUE_TYPE ISColoringValue; 2320c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISAllGatherColors(MPI_Comm,PetscInt,ISColoringValue*,PetscInt*,ISColoringValue*[]); 233dde82324SBarry Smith 2345c20da3cSBarry Smith /*S 235dde82324SBarry Smith ISColoring - sets of IS's that define a coloring 236639f9d9dSBarry Smith of the underlying indices 2375c20da3cSBarry Smith 2385c20da3cSBarry Smith Level: intermediate 2395c20da3cSBarry Smith 2405c20da3cSBarry Smith Notes: 241b9617806SBarry Smith One should not access the *is records below directly because they may not yet 2425c20da3cSBarry Smith have been created. One should use ISColoringGetIS() to make sure they are 2435c20da3cSBarry Smith created when needed. 2445c20da3cSBarry Smith 2455c20da3cSBarry Smith .seealso: ISColoringCreate(), ISColoringGetIS(), ISColoringView(), ISColoringGetIS() 2465c20da3cSBarry Smith S*/ 24795fbd943SSatish Balay struct _n_ISColoring { 248a7cc72afSBarry Smith PetscInt refct; 249a7cc72afSBarry Smith PetscInt n; /* number of colors */ 2505c20da3cSBarry Smith IS *is; /* for each color indicates columns */ 251639f9d9dSBarry Smith MPI_Comm comm; 25208b6dcc0SBarry Smith ISColoringValue *colors; /* for each column indicates color */ 25332dcc486SBarry Smith PetscInt N; /* number of columns */ 254b9617806SBarry Smith ISColoringType ctype; 255639f9d9dSBarry Smith }; 25695fbd943SSatish Balay typedef struct _n_ISColoring* ISColoring; 257639f9d9dSBarry Smith 25806262987SSatish Balay EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISColoringCreate(MPI_Comm,PetscInt,PetscInt,const ISColoringValue[],ISColoring*); 2590c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISColoringDestroy(ISColoring); 2600c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISColoringView(ISColoring,PetscViewer); 2610c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISColoringGetIS(ISColoring,PetscInt*,IS*[]); 2620c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISColoringRestoreIS(ISColoring,IS*[]); 2633a7fca6bSBarry Smith #define ISColoringReference(coloring) ((coloring)->refct++,0) 2643a7fca6bSBarry Smith #define ISColoringSetType(coloring,type) ((coloring)->ctype = type,0) 2653a7fca6bSBarry Smith 266dbef8a1cSBarry Smith /* --------------------------------------------------------------------------*/ 267dbef8a1cSBarry Smith 2680c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISPartitioningToNumbering(IS,IS*); 2696308e1d5SBarry Smith EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISPartitioningCount(IS,PetscInt,PetscInt[]); 270dbef8a1cSBarry Smith 2710c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCompressIndicesGeneral(PetscInt,PetscInt,PetscInt,const IS[],IS[]); 2720c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISCompressIndicesSorted(PetscInt,PetscInt,PetscInt,const IS[],IS[]); 2730c735eedSKris Buschelman EXTERN PetscErrorCode PETSCVEC_DLLEXPORT ISExpandIndicesGeneral(PetscInt,PetscInt,PetscInt,const IS[],IS[]); 274d9489beaSHong Zhang 275a5891931SBarry Smith 276e9fa29b7SSatish Balay PETSC_EXTERN_CXX_END 277a2ce50c7SBarry Smith #endif 278