Commit fe1a4401 authored by Kenneth D. Renard (Cont ARL/CISD) kdrenard's avatar Kenneth D. Renard (Cont ARL/CISD) kdrenard Committed by Kenneth Leiter

Deleted TestXdmfWriterHDF5ThenXML.cxx

parent 03208c7b
#include "XdmfDomain.hpp"
#include "XdmfHDF5Writer.hpp"
#include "XdmfWriter.hpp"
#include "XdmfTestDataGenerator.hpp"
int main(int argc, char* argv[])
{
boost::shared_ptr<XdmfGrid> grid = XdmfTestDataGenerator::createHexahedron();
// First write and release heavy data
boost::shared_ptr<XdmfHDF5Writer> hdf5Writer = XdmfHDF5Writer::New("output.h5");
grid->getGeometry()->accept(hdf5Writer);
grid->getGeometry()->release();
grid->getTopology()->accept(hdf5Writer);
grid->getTopology()->release();
for(int i=0; i<grid->getNumberAttributes(); ++i)
{
grid->getAttribute(i)->accept(hdf5Writer);
grid->getAttribute(i)->release();
}
// Now insert into domain and write light data
boost::shared_ptr<XdmfDomain> domain = XdmfDomain::New();
domain->insert(grid);
boost::shared_ptr<XdmfWriter> writer = XdmfWriter::New("output.xmf", hdf5Writer);
writer->setLightDataLimit(10);
domain->accept(writer);
return 0;
}
Markdown is supported
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