X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fphm2pj.cpp;h=4c12ecf6f1e1d037bafdd731dc1821757ad4467f;hb=711cae0ee02e046370fdb4d6c6f440596ff71980;hp=46246117a43f674e00e9e2f154d951c0a9b1a289;hpb=c0880d4cd7e7d8da6fe67a28d27990c0279b9497;p=ctsim.git diff --git a/tools/phm2pj.cpp b/tools/phm2pj.cpp index 4624611..4c12ecf 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.4 2000/07/23 01:49:03 kevin Exp $ +** $Id: phm2pj.cpp,v 1.5 2000/07/28 08:28:08 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 @@ -285,7 +285,24 @@ phm2pj_main (int argc, char* argv[]) #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"); + 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