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
/
ctrec.cpp
diff --git
a/src/ctrec.cpp
b/src/ctrec.cpp
index 42dadc0ca9310632c665eefc34465e26c9ad75b2..2d94be905dfe2f61a1c75e88740bdc74144233f1 100644
(file)
--- a/
src/ctrec.cpp
+++ b/
src/ctrec.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: ctrec.cpp,v 1.1
1 2000/06/18 10:27:11
kevin Exp $
+** $Id: ctrec.cpp,v 1.1
2 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
@@
-176,11
+176,11
@@
ctrec_main (int argc, char * argv[])
break;
case O_VERSION:
#ifdef VERSION
break;
case O_VERSION:
#ifdef VERSION
- cout << "Version " << VERSION << endl;
+
cout << "Version " << VERSION << endl;
#else
#else
- cout << "Unknown version number" << endl;
+
cout << "Unknown version number" << endl;
#endif
#endif
-
exit
(0);
+
return
(0);
case O_HELP:
case '?':
ctrec_usage(argv[0]);
case O_HELP:
case '?':
ctrec_usage(argv[0]);
@@
-370,7
+370,17
@@
ReduceImageMPI (MPIWorld& mpiWorld, ImageFile* imLocal, ImageFile* imGlobal)
int
main (int argc, char* argv[])
{
int
main (int argc, char* argv[])
{
- return (ctrec_main(argc, argv));
+ int retval = 1;
+
+ try {
+ retval = ctrec_main(argc, argv);
+ } catch (exception e) {
+ cerr << "Exception: " << e.what() << endl;
+ } catch (...) {
+ cerr << "Unknown exception" << endl;
+ }
+
+ return (retval);
}
#endif
}
#endif