Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
9c1652ad
Commit
9c1652ad
authored
Aug 17, 2012
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Fix previous commit which committed incorrect changes!
parent
7b0f5e89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
utils/XdmfFortran.cpp
utils/XdmfFortran.cpp
+6
-4
utils/XdmfFortran.hpp
utils/XdmfFortran.hpp
+4
-2
utils/XdmfPartitioner.cpp
utils/XdmfPartitioner.cpp
+0
-1
utils/XdmfPartitioner.hpp
utils/XdmfPartitioner.hpp
+0
-3
No files found.
utils/XdmfFortran.cpp
View file @
9c1652ad
...
...
@@ -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
);
...
...
utils/XdmfFortran.hpp
View file @
9c1652ad
...
...
@@ -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
...
...
utils/XdmfPartitioner.cpp
View file @
9c1652ad
...
...
@@ -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
{
...
...
utils/XdmfPartitioner.hpp
View file @
9c1652ad
...
...
@@ -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
;
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment