Skip to content
Snippets Groups Projects
Commit 34cade82 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #13458 Add x error to saving as nexus

parent 2718a638
No related branches found
No related tags found
No related merge requests found
...@@ -375,6 +375,23 @@ int NexusFileIO::writeNexusProcessedData2D( ...@@ -375,6 +375,23 @@ int NexusFileIO::writeNexusProcessedData2D(
start, asize); start, asize);
start[0]++; start[0]++;
} }
// Potentially x error
if (localworkspace->hasDx(0)) {
name = "xerrors";
NXcompmakedata(fileID, name.c_str(), NX_FLOAT64, 2, dims_array,
m_nexuscompression, asize);
NXopendata(fileID, name.c_str());
start[0] = 0;
for (size_t i = 0; i < nSpect; i++) {
int s = spec[i];
NXputslab(fileID, reinterpret_cast<void *>(const_cast<double *>(
&(localworkspace->readDx(s)[0]))),
start, asize);
start[0]++;
}
}
if (m_progress != 0) if (m_progress != 0)
m_progress->reportIncrement(1, "Writing data"); m_progress->reportIncrement(1, "Writing data");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment