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

fix Dsm without MPI

parent ab7bff7c
......@@ -32,7 +32,9 @@ XdmfDataDesc::XdmfDataDesc() {
this->NextOffset = 0;
this->Rank = 1;
this->ShapeString = 0;
#ifndef XDMF_NO_MPI
this->DsmBuffer = NULL;
#endif
}
XdmfDataDesc::~XdmfDataDesc() {
......
......@@ -61,7 +61,9 @@ XdmfElement::XdmfElement() {
this->ReferenceElement = NULL;
this->State = XDMF_ELEMENT_STATE_UNINITIALIZED;
this->CopyReferenceData = 1;
#ifndef XDMF_NO_MPI
this->DsmBuffer = NULL;
#endif
}
XdmfElement::~XdmfElement() {
......
......@@ -585,7 +585,9 @@ if( this->GetClass() == XDMF_UNSTRUCTURED ){
// cout << "Connection DataItem = " << &Connections << endl;
XdmfDebug("Reading Connections from DataItem");
if(Connections.SetDOM(this->DOM) == XDMF_FAIL) return(XDMF_FAIL);
#ifndef XDMF_NO_MPI
Connections.SetDsmBuffer(this->DsmBuffer);
#endif
if( this->ConnectivityIsMine && this->Connectivity ) delete this->Connectivity;
if(Connections.SetElement(ConnectionElement, 0) == XDMF_FAIL) return(XDMF_FAIL);
if(Connections.UpdateInformation() == XDMF_FAIL) return(XDMF_FAIL);
......
Supports Markdown
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