Changeset 12022


Ignore:
Timestamp:
04/17/12 07:57:42 (13 years ago)
Author:
Mathieu Morlighem
Message:

moved MODULEBOOT to ISSMBOOT to avoid conflict with mex

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r12019 r12022  
    1616#Core sources{{{1
    1717core_sources = ./issm.h\
    18                                 ./issm-binding.h\
    19                                 ./include/macros.h\
     18                                        ./issm-binding.h\
     19                                        ./include/macros.h\
    2020                                        ./include/typedefs.h\
    2121                                        ./include/types.h\
  • issm/trunk-jpl/src/c/include/macros.h

    r12015 r12022  
    4040#endif
    4141/*}}}*/
    42 /* MODULEBOOT/MODULEEND {{{1*/
     42/* ISSMBOOT/ISSMEND {{{1*/
    4343
    4444/*The following macros hide the error exception handling in a matlab module. Just put
    45  * MODULEBOOT(); and MODULEEND(); at the beginning and end of a module, and c++ exceptions
     45 * ISSMBOOT(); and ISSMEND(); at the beginning and end of a module, and c++ exceptions
    4646 * will be trapped. Really nifty!*/
    4747
    48 #define MODULEBOOT(); \
     48#define ISSMBOOT(); \
    4949        try{
    5050
    51 #define MODULEEND(); }\
     51#define ISSMEND(); }\
    5252        catch(ErrorException &exception){\
    5353                exception.Report(); \
  • issm/trunk-jpl/src/c/matlab/include/matlab_macros.h

    r12015 r12022  
    2020 * will be trapped. Really nifty!*/
    2121
    22 //Module Boot //{{{
    2322#define MODULEBOOT(); ModuleBoot(); \
    2423        try{
  • issm/trunk-jpl/src/c/matlab/io/WriteMatlabData.cpp

    r12013 r12022  
    2727               
    2828                #ifdef _HAVE_PETSC_
    29                 PetscMatrixToDoubleMatrix(&tmatrix_ptr,&rows,&cols,matrix->matrix);
     29                PetscMatrixToDoubleMatrix(&matrix_ptr,&rows,&cols,matrix->matrix);
    3030                #else
    3131                matrix_ptr=matrix->matrix->ToSerial();
  • issm/trunk-jpl/src/c/solutions/issm.cpp

    r12016 r12022  
    3535        int      ierr;
    3636
    37         MODULEBOOT();
     37        ISSMBOOT();
    3838
    3939        /*Initialize environments: Petsc, MPI, etc...: */
     
    141141       
    142142        /*end module: */
    143         MODULEEND();
     143        ISSMEND();
    144144
    145145        return 0; //unix success return;
    146146}
    147 
Note: See TracChangeset for help on using the changeset viewer.