Changeset 10087


Ignore:
Timestamp:
10/03/11 16:44:37 (13 years ago)
Author:
Eric.Larour
Message:

Trying to get metis 5.0 to work

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  
    2323
    2424
     25
    2526        /*setup options: */
    2627        METIS_SetDefaultOptions(options);
     
    3940        options[METIS_OPTION_NCUTS]   = 1;
    4041
     42
    4143        /*create eptr: */
    4244        eptr=(idx_t*)xmalloc((*pnumberofelements+1)*sizeof(idx_t));
     
    4749        }
    4850
     51
    4952        /*create tpwgts: */
    5053        tpwgts=(real_t*)xmalloc(*pnum_procs*sizeof(real_t));
     
    5356        }
    5457
     58
    5559        METIS_PartMeshNodal(pnumberofelements,pnumberofnodes, eptr, index,
    5660                        NULL, NULL, pnum_procs, tpwgts, options, &objval,
    5761                        epart, npart);
     62       
     63
    5864        #else
    5965        _error_("METIS version not supported yet");
  • TabularUnified issm/trunk/src/c/toolkits/metis/patches/metispatches.h

    r9998 r10087  
    1414void METIS_PartMeshNodalPatch(int *, int *, int *, int *, int *, int *, int *, int *, int *); //Common interface we are using in ISSM.
    1515
    16 #ifdef __cplusplus
    1716extern "C" {
    18 #endif
    1917
    2018#if _METIS_VERSION_ == 4
     
    2321#if _METIS_VERSION_ == 5
    2422int 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*);
     23int METIS_SetDefaultOptions(idx_t *options);
    2524#endif
    2625
    27 #ifdef __cplusplus
    2826}
    29 #endif
    30 
    3127
    3228#endif
Note: See TracChangeset for help on using the changeset viewer.