projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r102: fixed mpi bug
[ctsim.git]
/
src
/
if-2.cpp
diff --git
a/src/if-2.cpp
b/src/if-2.cpp
index 89e6cc811d0528f11485c0b8a652abf93305c156..0d35a125b57cf203cc640ea71250436fbac9ae83 100644
(file)
--- a/
src/if-2.cpp
+++ b/
src/if-2.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if-2.cpp,v 1.
5 2000/06/18 10:27:11
kevin Exp $
+** $Id: if-2.cpp,v 1.
6 2000/06/19 17:58:13
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-216,7
+216,17
@@
if2_main (int argc, char *const argv[])
int
main (int argc, char *const argv[])
{
int
main (int argc, char *const argv[])
{
- return (if2_main(argc, argv));
+ int retval = 1;
+
+ try {
+ retval = if2_main(argc, argv);
+ } catch (exception e) {
+ cerr << "Exception: " << e.what() << endl;
+ } catch (...) {
+ cerr << "Unknown exception" << endl;
+ }
+
+ return (retval);
}
#endif
}
#endif