Commit 5cc4a73f authored by Jerry Clarke's avatar Jerry Clarke
Browse files

add Reset()

parent cbeb819d
......@@ -100,6 +100,16 @@ public:
this->DataIsMine = 0;
}
void Reset( XdmfInt32 Free=0 ){
// XdmfInt64 Length = 1;
if( Free && this->DataIsMine && this->DataPointer ){
free( this->DataPointer );
}
this->DataPointer = 0;
this->DataIsMine = 1;
// this->Reform(1, &Length);
}
/*! Methods to Set Values of Elements
*/
XdmfInt32 SetValueFromFloat64( XdmfInt64 Index, XdmfFloat64 Value );
......
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