... SolutionTransfer, FEFieldFunction, DataOut, DataOut_DoFData, DataOutFaces, DataOutRotation.
--- /dev/null
+Deprecation announcement: The template arguments of the following
+classes will change in a future release:
+<ul>
+ <li>SolutionTransfer
+ <li>parallel::distributed::SolutionTransfer
+ <li>Functions::FEFieldFunction
+ <li>DataOut
+ <li>DataOut_DoFData
+ <li>DataOutFaces
+ <li>DataOutRotation
+</ul>
+If for some reason, you need a code that is compatible with deal.II
+9.3 and the subsequent release, a Legacy namespace has been introduced
+with aliases of these classes with their original interface. You can
+make the following substitutions to your code for each of the affected
+classes:
+<ul>
+ <li>X → Legacy::X
+</ul>
+To perform this substitution automatically, you may use a *search and
+replace* script like the following made for the *bash* shell:
+@code{.sh}
+classes=(SolutionTransfer parallel::distributed::SolutionTransfer Functions::FEFieldFunction DataOut DataOut_DoFData DataOutFaces DataOutRotation)
+for c in \${classes[@]}; do
+ find /path/to/your/code -type f -exec sed -i -E "/(\w\${c}|\${c}[^<]|Particles::\${c}|distributed::\${c}|^\s*(\/\/|\*))/! s/\${c}/Legacy::\${c}/g" {} \;
+done
+@endcode
+(Marc Fehling, 2020/11/20)
void
register_data_attach();
};
-
-
} // namespace distributed
} // namespace parallel
+namespace Legacy
+{
+ namespace parallel
+ {
+ namespace distributed
+ {
+ /**
+ * The template arguments of the original
+ * dealii::parallel::distributed::SolutionTransfer class will change in a
+ * future release. If for some reason, you need a code that is compatible
+ * with deal.II 9.3 and the subsequent release, use this alias instead.
+ */
+ template <int dim,
+ typename VectorType,
+ typename DoFHandlerType = DoFHandler<dim>>
+ using SolutionTransfer = dealii::parallel::distributed::
+ SolutionTransfer<dim, VectorType, DoFHandlerType>;
+ } // namespace distributed
+ } // namespace parallel
+} // namespace Legacy
DEAL_II_NAMESPACE_CLOSE
const CurvedCellRegion curved_cell_region);
};
+namespace Legacy
+{
+ /**
+ * The template arguments of the original dealii::DataOut class will
+ * change in a future release. If for some reason, you need a code that is
+ * compatible with deal.II 9.3 and the subsequent release, use this alias
+ * instead.
+ */
+ template <int dim, typename DoFHandlerType = DoFHandler<dim>>
+ using DataOut = dealii::DataOut<dim, DoFHandlerType>;
+} // namespace Legacy
DEAL_II_NAMESPACE_CLOSE
patches[i].neighbors[n] += old_n_patches;
}
+namespace Legacy
+{
+ /**
+ * The template arguments of the original dealii::DataOut_DoFData class will
+ * change in a future release. If for some reason, you need a code that is
+ * compatible with deal.II 9.3 and the subsequent release, use this alias
+ * instead.
+ */
+ template <typename DoFHandlerType,
+ int patch_dim,
+ int patch_space_dim = patch_dim>
+ using DataOut_DoFData =
+ dealii::DataOut_DoFData<DoFHandlerType, patch_dim, patch_space_dim>;
+} // namespace Legacy
+
DEAL_II_NAMESPACE_CLOSE
DataOutBase::Patch<dimension - 1, space_dimension> &patch);
};
+namespace Legacy
+{
+ /**
+ * The template arguments of the original dealii::DataOutFaces class will
+ * change in a future release. If for some reason, you need a code that is
+ * compatible with deal.II 9.3 and the subsequent release, use this alias
+ * instead.
+ */
+ template <int dim, typename DoFHandlerType = DoFHandler<dim>>
+ using DataOutFaces = dealii::DataOutFaces<dim, DoFHandlerType>;
+} // namespace Legacy
+
DEAL_II_NAMESPACE_CLOSE
&my_patches);
};
+namespace Legacy
+{
+ /**
+ * The template arguments of the original dealii::DataOutRotation class will
+ * change in a future release. If for some reason, you need a code that is
+ * compatible with deal.II 9.3 and the subsequent release, use this alias
+ * instead.
+ */
+ template <int dim, typename DoFHandlerType = DoFHandler<dim>>
+ using DataOutRotation = dealii::DataOutRotation<dim, DoFHandlerType>;
+} // namespace Legacy
+
DEAL_II_NAMESPACE_CLOSE
};
} // namespace Functions
+namespace Legacy
+{
+ namespace Functions
+ {
+ /**
+ * The template arguments of the original dealii::Functions::FEFieldFunction
+ * class will change in a future release. If for some reason, you need a
+ * code that is compatible with deal.II 9.3 and the subsequent release, use
+ * this alias instead.
+ */
+ template <int dim,
+ typename DoFHandlerType = DoFHandler<dim>,
+ typename VectorType = Vector<double>>
+ using FEFieldFunction =
+ dealii::Functions::FEFieldFunction<dim, DoFHandlerType, VectorType>;
+ } // namespace Functions
+} // namespace Legacy
+
+
DEAL_II_NAMESPACE_CLOSE
#endif
dof_values_on_cell;
};
+namespace Legacy
+{
+ /**
+ * The template arguments of the original dealii::SolutionTransfer class will
+ * change in a future release. If for some reason, you need a code that is
+ * compatible with deal.II 9.3 and the subsequent release, use this alias
+ * instead.
+ */
+ template <int dim,
+ typename VectorType = Vector<double>,
+ typename DoFHandlerType = DoFHandler<dim>>
+ using SolutionTransfer =
+ dealii::SolutionTransfer<dim, VectorType, DoFHandlerType>;
+} // namespace Legacy
+
DEAL_II_NAMESPACE_CLOSE
DEAL_II_NAMESPACE_OPEN
-namespace Functions
-{
+
#include "fe_field_function.inst"
-}
+
DEAL_II_NAMESPACE_CLOSE
for (DoFHandler : DOFHANDLER_TEMPLATES; VECTOR : VECTOR_TYPES;
deal_II_dimension : DIMENSIONS)
{
- template class FEFieldFunction<deal_II_dimension,
- DoFHandler<deal_II_dimension>,
- VECTOR>;
+ namespace Functions
+ \{
+ template class FEFieldFunction<deal_II_dimension,
+ DoFHandler<deal_II_dimension>,
+ VECTOR>;
+ \}
}