From ce446adbb8905d8b08dd5ca411e5d0e13e101233 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 May 1999 10:45:27 +0000 Subject: [PATCH] Make this file compilable again for other then 2d. Tag some functions as existant but not implemented in 1d. git-svn-id: https://svn.dealii.org/trunk@1335 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_io.cc | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_io.cc b/deal.II/deal.II/source/numerics/data_io.cc index 69a9178dc5..2a06502e5e 100644 --- a/deal.II/deal.II/source/numerics/data_io.cc +++ b/deal.II/deal.II/source/numerics/data_io.cc @@ -1023,14 +1023,13 @@ void DataOut<2>::write_povray_mesh (ostream &out) const { -#if deal_II_dimension == 3 - -template <> -void DataOut<3>::write_povray_mesh (ostream &) const { +template +void DataOut::write_povray_mesh (ostream &) const { + // this is for all other dimensions that + // are not explicitely specialized Assert (false, ExcNotImplemented()); }; -#endif @@ -1328,20 +1327,25 @@ void DataOut<2>::write_eps (ostream &out, const eps_output_data &EOD) const { #endif -#if deal_II_dimension == 3 -template <> -void DataOut<3>::write_epsgrid (ostream &/*out*/) const { + +template +void DataOut::write_epsgrid (ostream &/*out*/) const { + // this is for all other dimensions that + // are not explicitely specialized Assert (false, ExcNotImplemented()); }; -template <> -void DataOut<3>::write_eps (ostream &/*out*/) const { +template +void DataOut::write_eps (ostream &/*out*/, + const eps_output_data &/*EOD*/) const { + // this is for all other dimensions that + // are not explicitely specialized Assert (false, ExcNotImplemented()); }; -#endif + template -- 2.39.5