Commit bb300138 authored by John Biddiscombe's avatar John Biddiscombe
Browse files

BUG: If the heavydata file name (without path) was specified and the working...

BUG: If the heavydata file name (without path) was specified and the working directory was set in the DOM, the write was not correctly picking up the dir/name - which prevents writing relative paths in the xml that point correctly to the heavy data.
parent 70bcaac5
......@@ -742,7 +742,7 @@ if( this->File < 0 ){
return( XDMF_FAIL );
} else if( STRCASECMP( this->Domain, "FILE" ) == 0 ) {
}
this->File = H5Fcreate(this->FileName,
this->File = H5Fcreate(FullFileName.str(),
H5F_ACC_TRUNC,
this->CreatePlist,
this->AccessPlist);
......
......@@ -123,6 +123,7 @@ XdmfValuesHDF::Write(XdmfArray *anArray, XdmfConstString aHeavyDataSetName){
char* hds;
XdmfHDF H5;
H5.SetWorkingDirectory(this->DOM->GetWorkingDirectory());
if(!aHeavyDataSetName) aHeavyDataSetName = this->GetHeavyDataSetName();
if(!aHeavyDataSetName){
if(anArray->GetHeavyDataSetName()){
......
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