Changeset 13531
- Timestamp:
- 10/04/12 10:42:48 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/include/macros.h
r13530 r13531 71 71 #endif 72 72 /*}}}*/ 73 /* IssmBoot/IssmEnd {{{*/73 /* ExceptionTrapBegin/ExceptionTrapEnd {{{*/ 74 74 75 75 /*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++ exceptions76 * ExceptionTrapBegin(); and ExceptionTrapEnd(); at the beginning and end of a module, and c++ exceptions 77 77 * will be trapped. Really nifty!*/ 78 78 79 #define IssmBoot(); \79 #define ExceptionTrapBegin(); \ 80 80 try{ 81 81 82 #define IssmEnd(); }\82 #define ExceptionTrapEnd(); }\ 83 83 catch(ErrorException &exception){\ 84 84 exception.Report(); \ -
issm/trunk-jpl/src/c/solutions/issm.cpp
r13530 r13531 45 45 IssmPDouble Solution_time, Memory_use, Current_flops; 46 46 47 IssmBoot(); 48 47 /*Initialize exception trapping: */ 48 ExceptionTrapBegin(); 49 50 /*Initialize environment (MPI, PETSC, MUMPS, etc ...)*/ 49 51 EnvironmentInit(argc,argv); 50 52 … … 234 236 #endif 235 237 236 /* end module: */237 IssmEnd();238 /*Finalize exception trapping: */ 239 ExceptionTrapEnd(); 238 240 239 241 return 0; //unix success return; -
issm/trunk-jpl/src/c/solutions/kriging.cpp
r13530 r13531 36 36 IssmDouble *error = NULL; 37 37 38 IssmBoot(); 38 /*Initialize exception trapping: */ 39 ExceptionTrapBegin(); 39 40 41 /*Initialize environment (MPI, PETSC, MUMPS, etc ...)*/ 40 42 EnvironmentInit(argc,argv); 41 43 … … 97 99 #endif 98 100 99 /* end module: */100 IssmEnd();101 /*Finalize exception trapping: */ 102 ExceptionTrapEnd(); 101 103 102 104 return 0; //unix success return;
Note:
See TracChangeset
for help on using the changeset viewer.