** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2if.cpp,v 1.11 2000/08/27 20:32:55 kevin Exp $
+** $Id: phm2if.cpp,v 1.14 2000/11/29 11:12:53 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: phm2if.cpp,v 1.11 2000/08/27 20:32:55 kevin Exp $";
+static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.14 2000/11/29 11:12:53 kevin Exp $";
void
phm2if_usage (const char *program)
{
ImageFile* pImGlobal = NULL;
Phantom phm;
- string optPhmName (Phantom::convertPhantomIDToName(Phantom::PHM_HERMAN));
+ string optPhmName;
string optFilterName;
string optDomainName (SignalFilter::convertDomainIDToName (SignalFilter::DOMAIN_SPATIAL));
string optOutFilename;
pImGlobal = new ImageFile (opt_nx, opt_ny);
#endif
- ImageFileArray v;
+ ImageFileArray v = NULL;
#ifdef HAVE_MPI
if (mpiWorld.getRank() == 0)
v = pImGlobal->getArray ();
}
} else {
TimerCollectiveMPI timerRasterize (mpiWorld.getComm());
- phm.convertToImagefile (*pImLocal, opt_nsample, optTrace, mpiWorld.getMyStartWorkUnit(), mpiWorld.getMyLocalWorkUnits());
+ phm.convertToImagefile (*pImLocal, opt_nsample, optTrace, mpiWorld.getMyStartWorkUnit(), mpiWorld.getMyLocalWorkUnits(), false);
if (optVerbose)
timerRasterize.timerEndAndReport ("Time to rasterize phantom");