]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a changelog entry.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 16 Jan 2025 15:57:57 +0000 (08:57 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 21 Jan 2025 18:29:54 +0000 (11:29 -0700)
doc/news/changes/incompatibilities/20250116Bangerth [new file with mode: 0644]

diff --git a/doc/news/changes/incompatibilities/20250116Bangerth b/doc/news/changes/incompatibilities/20250116Bangerth
new file mode 100644 (file)
index 0000000..ca7cce0
--- /dev/null
@@ -0,0 +1,22 @@
+Changed: The header file `deal.II/grid/tria.h` used to automatically
+include the header file `deal.II/grid/tria_description.h` that
+declares classes such as CellData and SubCellData. But this led to a
+circular set of inclusions because `deal.II/grid/tria_description.h`
+also included `deal.II/grid/tria.h`, something that C++ allows but
+that leads to other problems. As a consequence, `deal.II/grid/tria.h`
+now no longer includes `deal.II/grid/tria_description.h`. If your
+program uses the CellData, SubCellData, or similar classes previously
+declared in `deal.II/grid/tria_description.h`, then you may want to
+explicitly include `deal.II/grid/tria_cell_data.h` (for the
+CellData and SubCellData classes) or `deal.II/grid/tria_description.h`
+(for the classes in namespace TriaDescription) in your program.
+
+The file `deal.II/grid/cell_data.h` is new. As a consequence, if
+you need to ensure that your code compiles with both deal.II 9.6
+and 9.7, you can't directly include it. However,
+`deal.II/grid/tria_description.h` now includes it, so a backward
+compatible solution is to only include that file, even if you
+only need the CellData and SubCellData classes but not the ones
+in namespace TriaDescription.
+<br>
+(Wolfgang Bangerth, 2024/05/16)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.