]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make this file compilable again for other then 2d. Tag some functions
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 May 1999 10:45:27 +0000 (10:45 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 May 1999 10:45:27 +0000 (10:45 +0000)
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

index 69a9178dc593983f0ae2e12bb76976c520f444e4..2a06502e5ea552033d2c98d8b126d4ba733179ea 100644 (file)
@@ -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 <int dim>
+void DataOut<dim>::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 <int dim>
+void DataOut<dim>::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 <int dim>
+void DataOut<dim>::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 <int dim>

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.