Commit c231d85c authored by Kenneth Leiter's avatar Kenneth Leiter

BUG: Fix bug introduced by new GetValue() in XdmfArray. Forgot to return value.

parent 720346ef
......@@ -202,15 +202,15 @@ template <typename T>
T
XdmfArray::getValue(const unsigned int index) const
{
if(mHaveArray) {
boost::apply_visitor(GetValue<T>(index),
mArray);
}
else if(mHaveArrayPointer) {
boost::apply_visitor(GetValue<T>(index),
mArrayPointer);
}
return 0;
if(mHaveArray) {
return boost::apply_visitor(GetValue<T>(index),
mArray);
}
else if(mHaveArrayPointer) {
return boost::apply_visitor(GetValue<T>(index),
mArrayPointer);
}
return 0;
}
template <typename T>
......
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