Changeset 13231


Ignore:
Timestamp:
09/04/12 09:54:32 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removing PetscInitialize and PetscFinalize from matlab and python modules

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/matlab/include/matlab_macros.h

    r12365 r13231  
    1919/*The following macros hide the error exception handling in a matlab module. Just put
    2020 * MODULEBOOT(); and MODULEEND(); at the beginning and end of a module, and c++ exceptions
    21  * will be trapped. Really nifty!*/
    22 //exception.Report();
     21 * will be trapped*/
     22#define MODULEBOOT(); try{
    2323
    24 #define MODULEBOOT(); ModuleBoot(); \
    25         try{
    26 
    27 #define MODULEEND(); ModuleEnd(); }\
     24#define MODULEEND(); }\
    2825        catch(ErrorException &exception){\
    2926                mexErrMsgTxt("ISSM Error"); \
     
    3532                mexErrMsgTxt("An unexpected error occurred");\
    3633        }
    37 //}}}
     34/*}}}*/
    3835/* WRAPPER {{{*/
    3936#define WRAPPER(modulename,...) void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[])
    40 
    4137/*}}}*/
    4238/* CHECKARGUMENTS {{{*/
  • issm/trunk-jpl/src/c/shared/Wrapper/ModuleBoot.cpp

    r11935 r13231  
    1111#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
    1212#endif
    13 
    1413
    1514int ModuleBoot(void){
Note: See TracChangeset for help on using the changeset viewer.