From: wolf Date: Tue, 18 May 1999 10:45:27 +0000 (+0000) Subject: Make this file compilable again for other then 2d. Tag some functions X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661cc94ac05f39602d6fcac28e56a98fc0b17351;p=dealii-svn.git 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 --- 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