forked from dealii/dealii
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support XDMF writing with empty ranks
followup to dealii#13962 (hdf writing with no cells on rank 0) fixes dealii#13404
- Loading branch information
Showing
5 changed files
with
212 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
tests/data_out/data_out_hdf5_03.with_hdf5=true.with_p4est=true.mpirun=2.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,63 @@ | ||
|
||
DEAL:0::n_cells on my rank: 4 | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> | ||
<Xdmf Version="2.0"> | ||
<Domain> | ||
<Grid Name="CellTime" GridType="Collection" CollectionType="Temporal"> | ||
<Grid Name="mesh" GridType="Uniform"> | ||
<Time Value="0"/> | ||
<Geometry GeometryType="XY"> | ||
<DataItem Dimensions="16 2" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/nodes | ||
</DataItem> | ||
</Geometry> | ||
<Topology TopologyType="Quadrilateral" NumberOfElements="4"> | ||
<DataItem Dimensions="4 4" NumberType="UInt" Format="HDF"> | ||
out.h5:/cells | ||
</DataItem> | ||
</Topology> | ||
<Attribute Name="bla" AttributeType="Scalar" Center="Node"> | ||
<DataItem Dimensions="16 1" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/bla | ||
</DataItem> | ||
</Attribute> | ||
</Grid> | ||
</Grid> | ||
</Domain> | ||
</Xdmf> | ||
|
||
DEAL:0::ok | ||
DEAL:0::n_cells on my rank: 8 | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> | ||
<Xdmf Version="2.0"> | ||
<Domain> | ||
<Grid Name="CellTime" GridType="Collection" CollectionType="Temporal"> | ||
<Grid Name="mesh" GridType="Uniform"> | ||
<Time Value="0"/> | ||
<Geometry GeometryType="XYZ"> | ||
<DataItem Dimensions="64 3" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/nodes | ||
</DataItem> | ||
</Geometry> | ||
<Topology TopologyType="Hexahedron" NumberOfElements="8"> | ||
<DataItem Dimensions="8 8" NumberType="UInt" Format="HDF"> | ||
out.h5:/cells | ||
</DataItem> | ||
</Topology> | ||
<Attribute Name="bla" AttributeType="Scalar" Center="Node"> | ||
<DataItem Dimensions="64 1" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/bla | ||
</DataItem> | ||
</Attribute> | ||
</Grid> | ||
</Grid> | ||
</Domain> | ||
</Xdmf> | ||
|
||
DEAL:0::ok | ||
|
||
DEAL:1::n_cells on my rank: 4294967295 | ||
DEAL:1::n_cells on my rank: 4294967295 | ||
|
62 changes: 62 additions & 0 deletions
62
tests/data_out/data_out_hdf5_03.with_hdf5=true.with_p4est=true.mpirun=3.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,67 @@ | ||
|
||
DEAL:0::n_cells on my rank: 4294967295 | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> | ||
<Xdmf Version="2.0"> | ||
<Domain> | ||
<Grid Name="CellTime" GridType="Collection" CollectionType="Temporal"> | ||
<Grid Name="mesh" GridType="Uniform"> | ||
<Time Value="0"/> | ||
<Geometry GeometryType="XY"> | ||
<DataItem Dimensions="16 2" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/nodes | ||
</DataItem> | ||
</Geometry> | ||
<Topology TopologyType="Quadrilateral" NumberOfElements="4"> | ||
<DataItem Dimensions="4 4" NumberType="UInt" Format="HDF"> | ||
out.h5:/cells | ||
</DataItem> | ||
</Topology> | ||
<Attribute Name="bla" AttributeType="Scalar" Center="Node"> | ||
<DataItem Dimensions="16 1" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/bla | ||
</DataItem> | ||
</Attribute> | ||
</Grid> | ||
</Grid> | ||
</Domain> | ||
</Xdmf> | ||
|
||
DEAL:0::ok | ||
DEAL:0::n_cells on my rank: 4294967295 | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> | ||
<Xdmf Version="2.0"> | ||
<Domain> | ||
<Grid Name="CellTime" GridType="Collection" CollectionType="Temporal"> | ||
<Grid Name="mesh" GridType="Uniform"> | ||
<Time Value="0"/> | ||
<Geometry GeometryType="XYZ"> | ||
<DataItem Dimensions="64 3" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/nodes | ||
</DataItem> | ||
</Geometry> | ||
<Topology TopologyType="Hexahedron" NumberOfElements="8"> | ||
<DataItem Dimensions="8 8" NumberType="UInt" Format="HDF"> | ||
out.h5:/cells | ||
</DataItem> | ||
</Topology> | ||
<Attribute Name="bla" AttributeType="Scalar" Center="Node"> | ||
<DataItem Dimensions="64 1" NumberType="Float" Precision="8" Format="HDF"> | ||
out.h5:/bla | ||
</DataItem> | ||
</Attribute> | ||
</Grid> | ||
</Grid> | ||
</Domain> | ||
</Xdmf> | ||
|
||
DEAL:0::ok | ||
|
||
DEAL:1::n_cells on my rank: 4294967295 | ||
DEAL:1::n_cells on my rank: 8 | ||
|
||
|
||
DEAL:2::n_cells on my rank: 4 | ||
DEAL:2::n_cells on my rank: 4294967295 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters