Skip to content
Snippets Groups Projects
Commit 41422081 authored by Jean M. Favre's avatar Jean M. Favre
Browse files

cleaned up unused vars

parent 2df237e8
No related merge requests found
......@@ -151,7 +151,6 @@ int vtkGaussianCubeReader2::RequestData(
vtkInformationVector *outputVector)
{
char title[256];
char data_name[256];
double elements[16];
int NumberOfAtoms, JN1, N1N2, n1, n2, n3, i, j, k;
float tmp, *cubedata;
......
......@@ -164,8 +164,7 @@ int vtkXYZMolReader2::RequestData(
vtkErrorMacro ("vtkXYZMolReader2 error opening file: " << this->FileName);
return 0;
}
int length = outInfo->Length(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
double* steps = outInfo->Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
int timestep=0;
std::vector<double>::iterator it = this->TimeSteps.begin();
......@@ -191,7 +190,7 @@ int vtkXYZMolReader2::RequestData(
if(it != this->TimeSteps.end())
{
it--; timestep--;
//std::cout << __LINE__ << "comparing " << *it << ", " << *(it+1) << std::endl;
if(fabs(*it - requestedTimeStep) > fabs(*(it+1) - requestedTimeStep))
{
// closer to next timestep value
......@@ -213,7 +212,7 @@ int vtkXYZMolReader2::RequestData(
int nbAtoms;
char eolc;
file_in >> nbAtoms >> eolc; // first title line
//std::cout << __LINE__ << "# of atoms read = " << nbAtoms << std::endl;
if(nbAtoms != this->NumberOfAtoms)
{
vtkErrorMacro ("vtkXYZMolReader2 error reading file: " << this->FileName
......@@ -247,17 +246,6 @@ int vtkXYZMolReader2::RequestData(
return 1;
}
//----------------------------------------------------------------------------
int vtkXYZMolReader2::CanReadFile(const char* fname)
{
// to be implemented further
int valid = 1;
return valid;
}
//----------------------------------------------------------------------------
void vtkXYZMolReader2::PrintSelf(ostream& os, vtkIndent indent)
{
......
......@@ -35,16 +35,10 @@ class vtkMolecule;
class VTKDOMAINSCHEMISTRY_EXPORT vtkXYZMolReader2 : public vtkMoleculeAlgorithm
{
public:
static vtkXYZMolReader2 *New();
vtkTypeMacro(vtkXYZMolReader2,vtkMoleculeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkXYZMolReader2 *New();
// Description:
// Test whether the file with the given name can be read by this
// reader.
int CanReadFile(const char* fname);
// Description:
// Get/Set the output (vtkMolecule) that the reader will fill
vtkMolecule *GetOutput();
......@@ -65,7 +59,6 @@ protected:
vtkInformationVector *);
char *FileName;
ifstream file_in;
std::vector<istream::pos_type> file_positions; // to store begining of each tstep
std::vector<double> TimeSteps;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment