Commit a0a2bed7 authored by pugmire's avatar pugmire

bug fix for uniform mesh

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@22579 18c085ea-50e0-402c-830e-de6fd14e8384
parent c0353434
......@@ -578,17 +578,17 @@ avtADIOSSchemaFileFormat::MakeUniformMesh(MESH_UNIFORM *m, int ts, int dom)
for (int d = 0; d < 3; d++)
{
xyz[d] = vtkFloatArray::New();
if (m->dimensions[d] == 0)
{
xyz[d]->SetNumberOfTuples(1);
xyz[d]->SetTuple1(0, 0.0f);
}
else
if (d < m->num_dimensions)
{
xyz[d]->SetNumberOfTuples(m->dimensions[d]);
for (int i = 0; i < m->dimensions[d]; i++)
xyz[d]->SetTuple1(i, m->origins[d] + i*m->spacings[d]);
}
else
{
xyz[d]->SetNumberOfTuples(1);
xyz[d]->SetTuple1(0, 0.0f);
}
}
int dims[3] = {1,1,1};
......
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