Commit 9c1652ad authored by Kenneth Leiter's avatar Kenneth Leiter

BUG: Fix previous commit which committed incorrect changes!

parent 7b0f5e89
......@@ -573,9 +573,10 @@ XdmfFortran::setTopology(const int topologyType,
}
void
XdmfFortran::write(const char * const xmlFilePath)
XdmfFortran::write(const char * const xmlFilePath, const unsigned int numValues )
{
shared_ptr<XdmfWriter> writer = XdmfWriter::New(xmlFilePath);
writer->setLightDataLimit(numValues);
mDomain->accept(writer);
}
......@@ -739,16 +740,17 @@ extern "C"
void
XdmfWrite(long * pointer,
char * xmlFilePath)
char * xmlFilePath,
const unsigned int * numValues)
{
XdmfFortran * xdmfFortran = reinterpret_cast<XdmfFortran *>(*pointer);
xdmfFortran->write(xmlFilePath);
xdmfFortran->write(xmlFilePath, *numValues);
}
void
XdmfWriteHDF5(long * pointer,
char * xmlFilePath)
char * xmlFilePath )
{
XdmfFortran * xdmfFortran = reinterpret_cast<XdmfFortran *>(*pointer);
xdmfFortran->writeHDF5(xmlFilePath);
......
......@@ -298,9 +298,11 @@ public:
/**
* Write constructed file to disk.
*
* @param xmlFilePath the path to the xml file to write to.
* @param xmlFilePath the path to the xml file to write to.
* @param numValues the number of values to write to light data
* before switching to heavy data.
*/
void write(const char * const xmlFilePath);
void write(const char * const xmlFilePath, const unsigned int numValues);
/**
* Write HDF5 heavy data to disk and release
......
......@@ -72,7 +72,6 @@ shared_ptr<XdmfGridCollection>
XdmfPartitioner::partition(const shared_ptr<XdmfUnstructuredGrid> gridToPartition,
const unsigned int numberOfPartitions,
const MetisScheme metisScheme,
const shared_ptr<XdmfArray> weights,
const shared_ptr<XdmfHeavyDataWriter> heavyDataWriter) const
{
......
......@@ -81,8 +81,6 @@ public:
* @param gridToPartition an XdmfGridUnstructured to partition.
* @param numberOfPartitions the number of pieces to partition the grid into.
* @param metisScheme which metis partitioning scheme to use.
* @param weights array of size number of elements giving the weight of
* each element (if NULL all elements have equal weight).
* @param heavyDataWriter an XdmfHDF5Writer to write the partitioned mesh to.
* If no heavyDataWriter is specified, all partitioned data will remain in
* memory.
......@@ -93,7 +91,6 @@ public:
partition(const shared_ptr<XdmfUnstructuredGrid> gridToPartition,
const unsigned int numberOfPartitions,
const MetisScheme metisScheme = DUAL_GRAPH,
const shared_ptr<XdmfArray> weights = shared_ptr<XdmfArray>(),
const shared_ptr<XdmfHeavyDataWriter> heavyDataWriter = shared_ptr<XdmfHeavyDataWriter>()) const;
/**
......
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