Commit 1c530d48 authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Change some comments and fix Release() method

parent ac08c282
......@@ -73,11 +73,13 @@ XdmfDOM::XdmfDOM(){
}
XdmfDOM::~XdmfDOM(){
XdmfDebug("Destroying DOM");
if( ( this->Output != &cout ) && ( this->Output != &cerr ) ) {
ofstream *OldOutput = ( ofstream *)this->Output;
OldOutput->close();
}
if( this->Input != &cin ) {
XdmfDebug("Deleting Input");
ifstream *OldInput = ( ifstream *)this->Input;
OldInput->close();
delete this->Input;
......
......@@ -66,13 +66,8 @@ XdmfGeometry::Release()
// this->NumberOfPoints = 0;
Node = this->GetElement();
node = this->DOM->FindDataElement(Index++, Node);
while(node) {
di = (XdmfDataItem *)this->GetCurrentXdmfElement(node);
if(di){
di->Release();
}
node = this->DOM->FindDataElement(Index++, Node);
}
// No Need to Release DataItems() since Data has been read
// and Stored in Internal Points
return(XDMF_SUCCESS);
}
// Returns an existing DataItem or build a new one
......
......@@ -32,8 +32,8 @@
* The Data Format utilizes
* the Hierarchical Data Format Version 5 (HDF5) , from NCSA, to store large amount of data
* that can be accessed in a host independent fashion. The eXtensible Markup Language
* (XML) is used to describe the high level organization of the data in HDF5. Finally, Network
* Distributed Global Memory (NDGM) is used to allow distributed access to cooperating
* (XML) is used to describe the high level organization of the data in HDF5. Finally
* a built-in Distributed Shared Memory (DSM) system is used to allow distributed access to cooperating
* applications.
* Access to XDMF is provided via a C++ class library.
......
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