Changeset 9388
- Timestamp:
- 08/23/11 11:46:03 (14 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/IoModel.cpp
r9386 r9388 508 508 /*}}}*/ 509 509 510 /*Add to this->data: */ 510 511 this->FetchData(&matrix,&M,&N,dataenum); 511 if(M*N==0){512 _error_("Cannot add %s to Iomodel->data because the matrix found is empty",EnumToStringx(dataenum));513 }514 515 /*Add to this->data: */516 512 this->data[dataenum]=matrix; 517 513 } -
issm/trunk/src/c/shared/Exceptions/Exceptions.cpp
r9320 r9388 10 10 #include "../shared.h" 11 11 #include "../../include/include.h" 12 #ifdef _SERIAL_ 13 #include "mex.h" 14 #endif 12 15 13 16 ErrorException::ErrorException(const string &what_arg){ … … 45 48 printf("[%i] %s error message: %s\n\n",my_rank,function_name.c_str(),what()); 46 49 #else 47 printf("\n??? Error using ==> %s at %i\n",file_name.c_str(),file_line);48 printf("%s error message: %s\n\n",function_name.c_str(),what());50 mexErrMsgTxt(exprintf("\n??? Error using ==> %s at %i\n%s error message: %s\n", 51 file_name.c_str(),file_line,function_name.c_str(),what())); 49 52 #endif 50 53 }
Note:
See TracChangeset
for help on using the changeset viewer.