Changeset 10074


Ignore:
Timestamp:
10/03/11 13:43:35 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed metis version flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp

    r9998 r10074  
    33 */
    44
     5#include <config.h>
    56#include "../metisincludes.h"
    67#include "../../../shared/shared.h"
     
    910
    1011
    11         #if _METIS_VERSION == 4
    12         METIS_PartMeshNodalPatch(pnumberofelements,pnumberofnodes, index, petype, pnumflag, pnum_procs, pedgecut, epart, npart); /*Our interface originates in the Metis 4.0 version, hence identical calls*/
    13         #endif
    14 
    15         #if _METIS_VERSION == 5
     12        #if _METIS_VERSION_ == 4
     13        /*Our interface originates in the Metis 4.0 version, hence identical calls*/
     14        METIS_PartMeshNodalPatch(pnumberofelements,pnumberofnodes, index, petype, pnumflag, pnum_procs, pedgecut, epart, npart);
     15        #elif _METIS_VERSION_ == 5
    1616        /*This interface is heavily changed. More options, different way of meshing, etc ...: */
    1717        int i;
     
    5757                        NULL, NULL, pnum_procs, tpwgts, options, &objval,
    5858                        epart, npart);
     59        #else
     60        _error_("METIS version not supported yet");
    5961        #endif
    6062}
Note: See TracChangeset for help on using the changeset viewer.