Changeset 10087
- Timestamp:
- 10/03/11 16:44:37 (13 years ago)
- Location:
- issm/trunk/src/c/toolkits/metis/patches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp ¶
r10080 r10087 23 23 24 24 25 25 26 /*setup options: */ 26 27 METIS_SetDefaultOptions(options); … … 39 40 options[METIS_OPTION_NCUTS] = 1; 40 41 42 41 43 /*create eptr: */ 42 44 eptr=(idx_t*)xmalloc((*pnumberofelements+1)*sizeof(idx_t)); … … 47 49 } 48 50 51 49 52 /*create tpwgts: */ 50 53 tpwgts=(real_t*)xmalloc(*pnum_procs*sizeof(real_t)); … … 53 56 } 54 57 58 55 59 METIS_PartMeshNodal(pnumberofelements,pnumberofnodes, eptr, index, 56 60 NULL, NULL, pnum_procs, tpwgts, options, &objval, 57 61 epart, npart); 62 63 58 64 #else 59 65 _error_("METIS version not supported yet"); -
TabularUnified issm/trunk/src/c/toolkits/metis/patches/metispatches.h ¶
r9998 r10087 14 14 void METIS_PartMeshNodalPatch(int *, int *, int *, int *, int *, int *, int *, int *, int *); //Common interface we are using in ISSM. 15 15 16 #ifdef __cplusplus17 16 extern "C" { 18 #endif19 17 20 18 #if _METIS_VERSION_ == 4 … … 23 21 #if _METIS_VERSION_ == 5 24 22 int METIS_PartMeshNodal(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, idx_t*, idx_t*, idx_t*, idx_t*); 23 int METIS_SetDefaultOptions(idx_t *options); 25 24 #endif 26 25 27 #ifdef __cplusplus28 26 } 29 #endif30 31 27 32 28 #endif
Note:
See TracChangeset
for help on using the changeset viewer.