Skip to content

Commit

Permalink
Remove deprecated XDMFEntry::get_xdmf_content
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jun 27, 2022
1 parent 472adc6 commit d9fad9f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 41 deletions.
4 changes: 4 additions & 0 deletions doc/news/changes/incompatibilities/20220627Arndt-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Removed: The deprecated overload of XDMFEntry::get_xdmf_content()
has been removed.
<br>
(Daniel Arndt, 2022/06/27)
11 changes: 0 additions & 11 deletions include/deal.II/base/data_out_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -3369,17 +3369,6 @@ class XDMFEntry
&num_cells &dimension &space_dimension &attribute_dims;
}

/**
* Get the XDMF content associated with this entry.
* If the entry is not valid, this returns an empty string.
*
* @deprecated Use the overload taking an `unsigned int` and a
* `const ReferenceCell &` instead.
*/
DEAL_II_DEPRECATED
std::string
get_xdmf_content(const unsigned int indent_level) const;

/**
* Get the XDMF content associated with this entry.
* If the entry is not valid, this returns an empty string.
Expand Down
26 changes: 0 additions & 26 deletions source/base/data_out_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9199,32 +9199,6 @@ namespace



std::string
XDMFEntry::get_xdmf_content(const unsigned int indent_level) const
{
switch (dimension)
{
case 0:
return get_xdmf_content(indent_level,
ReferenceCells::get_hypercube<0>());
case 1:
return get_xdmf_content(indent_level,
ReferenceCells::get_hypercube<1>());
case 2:
return get_xdmf_content(indent_level,
ReferenceCells::get_hypercube<2>());
case 3:
return get_xdmf_content(indent_level,
ReferenceCells::get_hypercube<3>());
default:
Assert(false, ExcNotImplemented());
}

return "";
}



std::string
XDMFEntry::get_xdmf_content(const unsigned int indent_level,
const ReferenceCell &reference_cell) const
Expand Down
2 changes: 1 addition & 1 deletion tests/data_out/data_out_hdf5_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ check()
<< " <Grid Name=\"CellTime\" GridType=\"Collection\" CollectionType=\"Temporal\">\n";

// Write out the entry
xdmf_file << entry.get_xdmf_content(3);
xdmf_file << entry.get_xdmf_content(3, ReferenceCells::get_hypercube<dim>());

xdmf_file << " </Grid>\n";
xdmf_file << " </Domain>\n";
Expand Down
2 changes: 1 addition & 1 deletion tests/mpi/data_out_hdf5_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ check()
<< " <Grid Name=\"CellTime\" GridType=\"Collection\" CollectionType=\"Temporal\">\n";

// Write out the entry
xdmf_file << entry.get_xdmf_content(3);
xdmf_file << entry.get_xdmf_content(3, ReferenceCells::get_hypercube<dim>());

xdmf_file << " </Grid>\n";
xdmf_file << " </Domain>\n";
Expand Down
6 changes: 4 additions & 2 deletions tests/serialization/xdmf_entry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ test()

deallog << "XDMFEntry before serialization: " << std::endl
<< std::endl
<< entry1.get_xdmf_content(0) << std::endl;
<< entry1.get_xdmf_content(0, ReferenceCells::get_hypercube<dim>())
<< std::endl;

deallog << "XDMFEntry after de-serialization: " << std::endl
<< std::endl
<< entry2.get_xdmf_content(0) << std::endl;
<< entry2.get_xdmf_content(0, ReferenceCells::get_hypercube<dim>())
<< std::endl;
}


Expand Down

0 comments on commit d9fad9f

Please sign in to comment.