Commit e999ac1f authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cleanup: remove .code files

These are used upstream for code generation.
parent 5061cc95
Target: xml2info
Function: LAMMPSCommonPluginInfo::SetupDatabase
Declaration: virtual avtDatabase * LAMMPSCommonPluginInfo::SetupDatabase(const char *const *list, int nList, int nBlock);
Definition:
// ****************************************************************************
// Method: LAMMPSCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a LAMMPS database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A LAMMPS database from list.
//
// Programmer: Jeremy Meredith
// Creation: February 9, 2009
//
// ****************************************************************************
avtDatabase *
LAMMPSCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
avtDatabase *db = 0;
//
// Create a file format interface.
//
avtFileFormatInterface *ffi = LAMMPS_CreateFileFormatInterface(list,
nList,
nBlock);
//
// If we created a file format interface, try creating a database.
//
if(ffi)
{
// Try and create the database using the interface that was created.
TRY
{
db = new avtGenericDatabase(ffi);
}
CATCH(VisItException)
{
delete ffi;
delete db;
RETHROW;
}
ENDTRY
}
return db;
}
Target: xml2info
Function: NETCDFCommonPluginInfo::SetupDatabase
Declaration: virtual avtDatabase * NETCDFCommonPluginInfo::SetupDatabase(const char *const *list, int nList, int nBlock);
Definition:
// ****************************************************************************
// Method: NETCDFCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a NETCDF database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A NETCDF database from list.
//
// Programmer: Brad Whitlock
// Creation: Fri Aug 12 09:46:51 PDT 2005
//
// Modifications:
// Brad Whitlock, Fri Dec 9 17:39:34 PST 2005
// I renamed a method call.
//
// ****************************************************************************
avtDatabase *
NETCDFCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
avtDatabase *db = 0;
//
// Create a file format interface.
//
avtFileFormatInterface *ffi = NETCDF_CreateFileFormatInterface(list,
nList,
nBlock);
//
// If we created a file format interface, try creating a database.
//
if(ffi)
{
// Try and create the database using the interface that was created.
TRY
{
db = new avtGenericDatabase(ffi);
}
CATCH(VisItException)
{
delete ffi;
delete db;
RETHROW;
}
ENDTRY
}
return db;
}
Target: xml2info
Function: PixieCommonPluginInfo::SetupDatabase
Declaration: virtual avtDatabase * PixieCommonPluginInfo::SetupDatabase(const char *const *list, int nList, int nBlock);
Definition:
// ****************************************************************************
// Method: PixieCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a Pixie database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A Pixie database from list.
//
// Programmer: whitlocb -- generated by xml2info
// Creation: Fri Aug 13 14:31:41 PST 2004
//
// Modifications:
// Brad Whitlock, Fri Aug 13 18:47:12 PST 2004
// Added some exception handline so the file formats are deleted if
// if creating one of them causes an exception to be generated.
//
// Jeremy Meredith, Thu Jan 28 12:28:07 EST 2010
// MTSD now accepts grouping multiple files into longer sequences, so
// its interface has changed to accept both a number of timestep groups
// and a number of blocks.
// ****************************************************************************
avtDatabase *
PixieCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
int nTimestepGroups = nList / nBlock;
avtMTSDFileFormat ***ffl = new avtMTSDFileFormat**[nTimestepGroups];
for (int i = 0 ; i < nTimestepGroups ; i++)
{
ffl[i] = new avtMTSDFileFormat*[nBlock];
for (int j = 0 ; j < nBlock ; j++)
{
ffl[i][j] = NULL;
}
}
TRY
{
for (int i = 0 ; i < nTimestepGroups ; i++)
{
for (int j = 0 ; j < nBlock ; j++)
{
ffl[i][j] = new avtPixieFileFormat(list[i*nBlock+j]);
}
}
}
CATCH(VisItException)
{
for (int i = 0 ; i < nTimestepGroups ; i++)
{
for (int j = 0 ; j < nBlock ; j++)
{
if(ffl[i][j] != 0)
delete ffl[i][j];
}
delete [] ffl[i];
}
delete [] ffl;
RETHROW;
}
ENDTRY
avtMTSDFileFormatInterface *inter
= new avtMTSDFileFormatInterface(ffl, nTimestepGroups, nBlock);
return new avtGenericDatabase(inter);
}
Target: xml2info
Function: SiloCommonPluginInfo::SetReadOptions
Declaration: virtual void SiloCommonPluginInfo::SetReadOptions(DBOptionsAttributes *opts)
Definition:
// ****************************************************************************
// Method: SiloCommonPluginInfo::SetReadOptions
//
// Purpose: Override default method so can provide a way of handling obsolete
// options.
//
// Programmer: Mark C. Miller
// Creation: Mon Mar 16 23:32:25 PDT 2009
//
// Mark C. Miller, Wed Jul 21 16:11:52 PDT 2010
// Resurrected after getting clobbered in r8950.
// ****************************************************************************
#include <string>
#include <DBOptionsAttributes.h>
#include <DebugStream.h>
using namespace SiloDBOptions;
using std::string;
void
SiloCommonPluginInfo::SetReadOptions(DBOptionsAttributes *opts)
{
DBOptionsAttributes *defaultReadOptions = GetReadOptions();
for (int i = 0; i < opts->GetNumberOfOptions(); i++)
{
string optname = opts->GetName(i);
// We only care about handling obsolete options here
if (!opts->IsObsolete(optname) && !defaultReadOptions->IsObsolete(optname))
continue;
if (optname == SILO_RDOPT_IGNORE_SEXTS2)
{
int enumval = -1;
for (int j = 0; j < opts->GetNumberOfOptions(); j++)
{
if (opts->GetName(j) == SILO_RDOPT_IGNORE_SEXTS)
{
enumval = opts->GetEnum(SILO_RDOPT_IGNORE_SEXTS);
break;
}
}
if (enumval == -1 || enumval == 3) // Undef
{
debug1 << "Using old option \"" << SILO_RDOPT_IGNORE_SEXTS2
<< "\" to set new option \"" << SILO_RDOPT_IGNORE_SEXTS;
if (opts->GetBool(SILO_RDOPT_IGNORE_SEXTS2))
{
debug1 << "\" to Always" << endl;
opts->SetEnum(SILO_RDOPT_IGNORE_SEXTS, 0); // Always
}
else
{
debug1 << "\" to Never" << endl;
opts->SetEnum(SILO_RDOPT_IGNORE_SEXTS, 2); // Never
}
opts->SetEnumStrings(SILO_RDOPT_IGNORE_SEXTS, defaultReadOptions->GetEnumStrings(SILO_RDOPT_IGNORE_SEXTS));
}
}
else if (optname == SILO_RDOPT_IGNORE_DEXTS2)
{
int enumval = -1;
for (int j = 0; j < opts->GetNumberOfOptions(); j++)
{
if (opts->GetName(j) == SILO_RDOPT_IGNORE_DEXTS)
{
enumval = opts->GetEnum(SILO_RDOPT_IGNORE_DEXTS);
break;
}
}
if (enumval == -1 || enumval == 3) // Undef
{
debug1 << "Using old option \"" << SILO_RDOPT_IGNORE_DEXTS2
<< "\" to set new option \"" << SILO_RDOPT_IGNORE_DEXTS;
if (opts->GetBool(SILO_RDOPT_IGNORE_DEXTS2))
{
debug1 << "\" to Always" << endl;
opts->SetEnum(SILO_RDOPT_IGNORE_DEXTS, 0); // Always
}
else
{
debug1 << "\" to Never" << endl;
opts->SetEnum(SILO_RDOPT_IGNORE_DEXTS, 2); // Never
}
opts->SetEnumStrings(SILO_RDOPT_IGNORE_DEXTS, defaultReadOptions->GetEnumStrings(SILO_RDOPT_IGNORE_DEXTS));
}
}
}
delete defaultReadOptions;
readOptions = opts;
}
Target: xml2info
Function: TecplotCommonPluginInfo::SetupDatabase
Declaration: virtual avtDatabase * TecplotCommonPluginInfo::SetupDatabase(const char *const *list, int nList, int nBlock);
Definition:
// ****************************************************************************
// Method: TecplotCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a Tecplot database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A Tecplot database from list.
//
// Programmer: meredith -- generated by xml2info
// Creation: Tue Feb 22 14:41:50 PST 2005
//
// Modifications:
// Brad Whitlock, Fri Jun 6 15:34:53 PDT 2008
// Check for Tecplot binary and instantiate the right reader class.
//
// Jeremy Meredith, Tue Oct 25 12:38:28 EDT 2011
// Added read options.
//
// ****************************************************************************
#include <avtTecplotBinaryFileFormat.h>
avtDatabase *
TecplotCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
bool isBinary = avtTecplotBinaryFileFormat::MatchFormat(list[0]);
avtSTMDFileFormat **ffl = new avtSTMDFileFormat*[nList];
for (int i = 0 ; i < nList ; i++)
{
if(isBinary)
ffl[i] = new avtTecplotBinaryFileFormat(list[i], readOptions);
else
ffl[i] = new avtTecplotFileFormat(list[i], readOptions);
}
avtSTMDFileFormatInterface *inter
= new avtSTMDFileFormatInterface(ffl, nList);
return new avtGenericDatabase(inter);
}
Target: xml2info
Function: VASPCommonPluginInfo::SetupDatabase
Declaration: virtual avtDatabase * VASPCommonPluginInfo::SetupDatabase(const char *const *list, int nList, int nBlock);
Definition:
// ****************************************************************************
// Method: VASPCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a VASP database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A VASP database from list.
//
// Programmer: js9 -- generated by xml2info
// Creation: Mon Aug 7 16:48:43 PST 2006
//
// ****************************************************************************
avtDatabase *
VASPCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
avtDatabase *db = 0;
//
// Create a file format interface.
//
avtFileFormatInterface *ffi = VASP_CreateFileFormatInterface(list,
nList,
nBlock);
//
// If we created a file format interface, try creating a database.
//
if(ffi)
{
// Try and create the database using the interface that was created.
TRY
{
db = new avtGenericDatabase(ffi);
}
CATCH(VisItException)
{
delete ffi;
delete db;
RETHROW;
}
ENDTRY
}
return db;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment