Commit 4389b12b authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Look for "DataItem" under Topology for connectivity

instead of just using the first node
parent d10ef021
...@@ -569,7 +569,7 @@ if( this->TopologyType == XDMF_NOTOPOLOGY ){ ...@@ -569,7 +569,7 @@ if( this->TopologyType == XDMF_NOTOPOLOGY ){
} }
if( this->GetClass() == XDMF_UNSTRUCTURED ){ if( this->GetClass() == XDMF_UNSTRUCTURED ){
// Read Connection // Read Connection
ConnectionElement = this->DOM->FindElement( NULL, 0, this->Element ); ConnectionElement = this->DOM->FindElement( "DataItem", 0, this->Element );
if( ConnectionElement ){ if( ConnectionElement ){
XdmfDataItem Connections; XdmfDataItem Connections;
...@@ -593,6 +593,7 @@ if( this->GetClass() == XDMF_UNSTRUCTURED ){ ...@@ -593,6 +593,7 @@ if( this->GetClass() == XDMF_UNSTRUCTURED ){
} }
} else { } else {
// Default Connectivity // Default Connectivity
XdmfDebug("Using Default Connectivity");
XdmfInt64 Length; XdmfInt64 Length;
if( !this->Connectivity ){ if( !this->Connectivity ){
this->Connectivity = new XdmfArray; this->Connectivity = new XdmfArray;
...@@ -602,6 +603,7 @@ if( this->GetClass() == XDMF_UNSTRUCTURED ){ ...@@ -602,6 +603,7 @@ if( this->GetClass() == XDMF_UNSTRUCTURED ){
Length = this->GetShapeDesc()->GetNumberOfElements() * this->NodesPerElement; Length = this->GetShapeDesc()->GetNumberOfElements() * this->NodesPerElement;
this->Connectivity->SetNumberOfElements( Length ); this->Connectivity->SetNumberOfElements( Length );
this->Connectivity->Generate( 0 , Length - 1 ); this->Connectivity->Generate( 0 , Length - 1 );
XdmfDebug("Default Connectivity Set");
} }
if( this->OrderIsDefault == 0 ){ if( this->OrderIsDefault == 0 ){
XdmfInt64 i,j; XdmfInt64 i,j;
......
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