Commit d26e01e3 authored by Nicole Marsaglia's avatar Nicole Marsaglia

Merge branch 'libsim_analysis_adaptor_fix' into 'master'

GetArrayInfoFromVariableName off by 1 for cell centered field data.

See merge request !108
parents 293a2246 ebd349d9
......@@ -1176,7 +1176,7 @@ LibsimAnalysisAdaptor::PrivateData::GetArrayInfoFromVariableName(
std::string tmpVar = varName.substr(pos+1, varName.size()-1-pos);
if(tmpVar.substr(0, 5) == "cell_")
{
var = tmpVar.substr(5, tmpVar.size()-1-5);
var = tmpVar.substr(5, tmpVar.size()-5);
association = vtkDataObject::FIELD_ASSOCIATION_CELLS;
}
else
......@@ -1191,7 +1191,7 @@ LibsimAnalysisAdaptor::PrivateData::GetArrayInfoFromVariableName(
meshName = meshNames[0];
if(varName.substr(0, 5) == "cell_")
{
var = varName.substr(5, varName.size()-1-5);
var = varName.substr(5, varName.size()-5);
association = vtkDataObject::FIELD_ASSOCIATION_CELLS;
}
else
......
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