Commit cb9e233d authored by Jerry Clarke's avatar Jerry Clarke
Browse files

change "IF" statement for CTH-like data

parent 3ca06d31
......@@ -69,7 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector>
vtkStandardNewMacro(vtkMyXdmfReader);
vtkCxxRevisionMacro(vtkMyXdmfReader, "1.4");
vtkCxxRevisionMacro(vtkMyXdmfReader, "1.5");
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
# include <direct.h>
......@@ -565,8 +565,10 @@ void vtkMyXdmfReader::Execute()
XdmfArray *values = this->FormatMulti->ElementToArray(
dataNode, this->DataDescription );
*/
if( !XDMF_WORD_CMP(NodeType, "DataTransform") &&
( this->Grid->GetTopologyType() == XDMF_3DRECTMESH ) ){
// if( !XDMF_WORD_CMP(NodeType, "DataTransform") &&
// ( this->Grid->GetTopologyType() == XDMF_3DRECTMESH ) ){
if( XDMF_WORD_CMP(NodeType, "DataStructure") &&
( this->Grid->GetTopologyType() == XDMF_3DRECTMESH )){
// Only works for the CTH-like special case
values = this->FormatMulti->ElementToArray(dataNode, this->DataDescription);
} 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