X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fphm2pj.cpp;h=d0636f062e014a7de077b18c244e1b68a950313c;hb=bd3ff8cf33195aa27dbd82e16b2f2c8eb8780cf9;hp=a2b30216b7645624143b23b93ae662ace4f44b3c;hpb=980bef9b95bef1ab728634181a5672088fd47066;p=ctsim.git diff --git a/tools/phm2pj.cpp b/tools/phm2pj.cpp index a2b3021..d0636f0 100644 --- a/tools/phm2pj.cpp +++ b/tools/phm2pj.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: phm2pj.cpp,v 1.6 2000/07/31 14:48:35 kevin Exp $ +** $Id: phm2pj.cpp,v 1.8 2000/08/03 09:21:12 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 @@ -47,6 +47,8 @@ static struct option phm2pj_options[] = {0, 0, 0, 0} }; +static const char* g_szIdStr = "$id$"; + void phm2pj_usage (const char *program) @@ -285,17 +287,14 @@ phm2pj_main (int argc, char* argv[]) #else Projections pjGlobal (scanner); - +#if HAVE_SGP 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(); @@ -303,6 +302,10 @@ phm2pj_main (int argc, char* argv[]) delete pSGPDriver; pSGPDriver = NULL; } +#else + scanner.collectProjections (pjGlobal, phm, 0, opt_trace); +#endif + #endif #ifdef HAVE_MPI