** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2pj.cpp,v 1.3 2000/07/22 15:45:33 kevin Exp $
+** $Id: phm2pj.cpp,v 1.6 2000/07/31 14:48:35 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
#else
Projections pjGlobal (scanner);
- scanner.collectProjections (pjGlobal, phm, 0, opt_trace);
+
+ SGPDriver* pSGPDriver = NULL;
+ SGP* pSGP = NULL;
+
+ if (opt_trace >= TRACE_PHM) {
+ pSGPDriver = new SGPDriver ("phm2pj", 600, 600);
+ pSGP = new SGP (*pSGPDriver);
+ }
+
+ scanner.collectProjections (pjGlobal, phm, 0, opt_trace, pSGP);
+
+ if (opt_trace >= TRACE_PHM) {
+ cout << "Press enter to continue\n";
+ cio_kb_getc();
+ delete pSGP; pSGP = NULL;
+ delete pSGPDriver; pSGPDriver = NULL;
+ }
+
#endif
#ifdef HAVE_MPI
try {
retval = phm2pj_main(argc, argv);
+#if HAVE_DMALLOC
+ // dmalloc_shutdown();
+#endif
} catch (exception e) {
cerr << "Exception: " << e.what() << endl;
} catch (...) {