Changeset 13531


Ignore:
Timestamp:
10/04/12 10:42:48 (12 years ago)
Author:
Eric.Larour
Message:

CHG: the IssmBoot and IssmEnd have nothing to do with ISSM booting and finializing, but more with
exception trapping. Renamed them accordingly.

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

Legend:

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

    r13530 r13531  
    7171#endif
    7272/*}}}*/
    73 /* IssmBoot/IssmEnd {{{*/
     73/* ExceptionTrapBegin/ExceptionTrapEnd {{{*/
    7474
    7575/*The following macros hide the error exception handling in a matlab module. Just put
    76  * IssmBoot(); and IssmEnd(); at the beginning and end of a module, and c++ exceptions
     76 * ExceptionTrapBegin(); and ExceptionTrapEnd(); at the beginning and end of a module, and c++ exceptions
    7777 * will be trapped. Really nifty!*/
    7878
    79 #define IssmBoot(); \
     79#define ExceptionTrapBegin(); \
    8080        try{
    8181
    82 #define IssmEnd(); }\
     82#define ExceptionTrapEnd(); }\
    8383        catch(ErrorException &exception){\
    8484                exception.Report(); \
  • issm/trunk-jpl/src/c/solutions/issm.cpp

    r13530 r13531  
    4545        IssmPDouble Solution_time, Memory_use, Current_flops;
    4646
    47         IssmBoot();
    48 
     47        /*Initialize exception trapping: */
     48        ExceptionTrapBegin();
     49
     50        /*Initialize environment (MPI, PETSC, MUMPS, etc ...)*/
    4951        EnvironmentInit(argc,argv);
    5052       
     
    234236        #endif
    235237
    236         /*end module: */
    237         IssmEnd();
     238        /*Finalize exception trapping: */
     239        ExceptionTrapEnd();
    238240
    239241        return 0; //unix success return;
  • issm/trunk-jpl/src/c/solutions/kriging.cpp

    r13530 r13531  
    3636        IssmDouble *error       = NULL;
    3737
    38         IssmBoot();
     38        /*Initialize exception trapping: */
     39        ExceptionTrapBegin();
    3940
     41        /*Initialize environment (MPI, PETSC, MUMPS, etc ...)*/
    4042        EnvironmentInit(argc,argv);
    4143
     
    9799#endif
    98100
    99         /*end module: */
    100         IssmEnd();
     101        /*Finalize exception trapping: */
     102        ExceptionTrapEnd();
    101103
    102104        return 0; //unix success return;
Note: See TracChangeset for help on using the changeset viewer.