Commit f0f20535 authored by allens's avatar allens
Browse files

fixed for 2D

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@16552 18c085ea-50e0-402c-830e-de6fd14e8384
parent 485c7e2a
......@@ -66,7 +66,7 @@
avtM3DC1Field::avtM3DC1Field( float *elementsPtr,
int nelements, int dim, int planes )
: elements( elementsPtr), neighbors(0),
: elements( elementsPtr), trigtable(0), neighbors(0),
f0(0), psi0(0), fnr(0), fni(0), psinr(0), psini(0),
I0(0), f(0), psi(0), I(0),
eqsubtract(0), linflag(0), tmode(0), bzero(0), rzero(0), F0(0),
......
......@@ -967,7 +967,9 @@ avtM3DC1FileFormat::GetMesh(int timestate, const char *meshname)
if ( refinement == 0 )
maxs[0] = nelms-1;
else
else if( element_dimension == 2 )
maxs[0] = nelms*pow((double) refinement+1.0, 2.0)-1;
else if( element_dimension == 3 )
maxs[0] = nelms*pow((double) refinement+1.0, 3.0)-1;
strides[0] = 1;
......@@ -1299,7 +1301,7 @@ avtM3DC1FileFormat::GetVar(int timestate, const char *varname)
else
return 0;
}
// First get the elements for this variable so that the variable can
// be interpolated onto the linear mesh.
float* elements;
......@@ -1462,6 +1464,7 @@ avtM3DC1FileFormat::GetVar(int timestate, const char *varname)
vtkPts->Delete();
vtkVar->Delete();
delete [] xieta;
return var;
}
......
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