Ignore:
Timestamp:
09/19/12 09:32:34 (12 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 13393

Location:
issm/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk

  • issm/trunk/src

  • issm/trunk/src/modules/MeshPartition/MeshPartition.h

    r12331 r13395  
    1 
    21/*
    32        MeshPartition.h
    43*/
    54
    6 
    75#ifndef _MESHPARTITION_H
    86#define _MESHPARTITION_H
    97
    10 /* local prototypes: */
    11 void MeshPartitionUsage(void);
     8#ifdef HAVE_CONFIG_H
     9        #include <config.h>
     10#else
     11        #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     12#endif
     13
     14/*For python modules: needs to come before header files inclusion*/
     15#ifdef _HAVE_PYTHON_
     16#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
     17#endif
    1218
    1319#include "../../c/include/globals.h"
     
    1723#include "../../c/issm-binding.h"
    1824
    19 #undef CLEANUP
    20 #define CLEANUP MeshPartitionLocalCleanup();
    21 
    2225#undef __FUNCT__
    2326#define __FUNCT__  "MeshPartition"
    2427
     28#ifdef _HAVE_MATLAB_MODULES_
    2529/* serial input macros: */
    26 #define MODEL (mxArray*)prhs[0]
    27 #define NUMAREAS (mxArray*)prhs[1]
    28 
     30#define MODEL    prhs[0]
     31#define NUMAREAS prhs[1]
    2932/* serial output macros: */
    3033#define ELEMENTPARTITIONING (mxArray**)&plhs[0]
    3134#define NODEPARTITIONING (mxArray**)&plhs[1]
     35#endif
     36
     37#ifdef _HAVE_PYTHON_MODULES_
     38/* serial input macros: */
     39#define MODEL    PyTuple_GetItem(args,0)
     40#define NUMAREAS PyTuple_GetItem(args,1)
     41/* serial output macros: */
     42#define ELEMENTPARTITIONING output,0
     43#define NODEPARTITIONING output,1
     44#endif
    3245
    3346/* serial arg counts: */
Note: See TracChangeset for help on using the changeset viewer.