** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2pj.cpp,v 1.20 2001/01/02 05:34:57 kevin Exp $
+** $Id: phm2pj.cpp,v 1.23 2001/01/17 06:25:15 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: phm2pj.cpp,v 1.20 2001/01/02 05:34:57 kevin Exp $";
+static const char* g_szIdStr = "$Id: phm2pj.cpp,v 1.23 2001/01/17 06:25:15 kevin Exp $";
void
#endif
int
-phm2pj_main (int argc, char* argv[])
+phm2pj_main (int argc, char* const argv[])
{
Phantom phm;
std::string optGeometryName = Scanner::convertGeometryIDToName(Scanner::GEOMETRY_PARALLEL);
mpiWorld.getComm().Bcast (&opt_verbose, 1, MPI::INT, 0);
mpiWorld.getComm().Bcast (&opt_debug, 1, MPI::INT, 0);
mpiWorld.getComm().Bcast (&opt_trace, 1, MPI::INT, 0);
- timerBcast.timerEndAndReport ("Time to broadcast variables");
+ if (opt_verbose)
+ timerBcast.timerEndAndReport ("Time to broadcast variables");
if (mpiWorld.getRank() > 0 && optPhmName != "")
phm.createFromPhantom (optPhmName.c_str());
#else
Projections pjGlobal (scanner);
-#if HAVE_SGP
- SGPDriver* pSGPDriver = NULL;
- SGP* pSGP = NULL;
- if (opt_trace >= Trace::TRACE_PHANTOM) {
- pSGPDriver = new SGPDriver ("phm2pj", 600, 600);
- pSGP = new SGP (*pSGPDriver);
- }
- scanner.collectProjections (pjGlobal, phm, opt_trace, pSGP);
- if (opt_trace >= Trace::TRACE_PHANTOM) {
- std::cout << "Press enter to continue\n";
- cio_kb_getc();
- delete pSGP; pSGP = NULL;
- delete pSGPDriver; pSGPDriver = NULL;
- }
-
-#else
scanner.collectProjections (pjGlobal, phm, opt_trace);
#endif
-
-#endif
#ifdef HAVE_MPI
if (mpiWorld.getRank() == 0)