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