Commit a8609912 authored by Yuanxin Liu's avatar Yuanxin Liu
Browse files

fix compiling errors and warnings

Change-Id: If3919433bba3761009b4c6e1d99bc26014dc068c
parent 934fc344
......@@ -188,7 +188,7 @@ protected:
int *extent = outImage->GetExtent(); //old style
int stepX,stepY,stepZ;
vtkIdType stepX,stepY,stepZ;
outImage->GetContinuousIncrements(extent,stepX,stepY,stepZ);
float * outPtr = static_cast<float*> (outImage->GetArrayPointerForExtent(outArray,extent));
......
......@@ -1147,8 +1147,10 @@ void vtkParticleTracerBase::IntegrateParticle(
this->Interpolator->ClearCache();
}
#ifdef DEBUGPARTICLETRACE
double eps = (this->GetCacheDataTime(1)-this->GetCacheDataTime(0))/100;
Assert (point1[3]>=(this->GetCacheDataTime(0)-eps) && point1[3]<=(this->GetCacheDataTime(1)+eps));
#endif
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
......
......@@ -70,7 +70,7 @@ public:
static TestAMRVectorSource *New();
virtual int FillInputPortInformation(int port, vtkInformation* info)
virtual int FillInputPortInformation(int, vtkInformation* info)
{
// now add our info
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkOverlappingAMR");
......@@ -91,7 +91,7 @@ protected:
// Description:
// This is called by the superclass.
// This is the method you should override.
virtual int RequestData(vtkInformation *request,
virtual int RequestData(vtkInformation *,
vtkInformationVector **inputVector,
vtkInformationVector *outputVector)
{
......@@ -113,9 +113,9 @@ protected:
output->ShallowCopy(input);
for( int level=0; level < input->GetNumberOfLevels(); ++level )
for(unsigned int level=0; level < input->GetNumberOfLevels(); ++level )
{
for(int idx=0;idx < input->GetNumberOfDataSets(level);++idx )
for(unsigned int idx=0;idx < input->GetNumberOfDataSets(level);++idx )
{
vtkUniformGrid *grid = input->GetDataSet( level, idx );
if(!grid)
......@@ -134,7 +134,6 @@ protected:
int numCells = grid->GetNumberOfCells();
for (int cellId=0; cellId < numCells; cellId++)
{
vtkCell *myCell = grid->GetCell( cellId);
assert(xVelocity);
double velocity[3] = {
xVelocity->GetTuple(cellId)[0],
......
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