]> https://gitweb.dealii.org/ - dealii.git/commitdiff
3D DX output checked except neighbors
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 8 May 2003 14:09:47 +0000 (14:09 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 8 May 2003 14:09:47 +0000 (14:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@7606 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/data_out_base.cc

index 3e929644e73abcc47a88778eecc9ff1940ae5ec6..fb0cf597aa89421744ae7d939ce29355b3650042 100644 (file)
@@ -19,6 +19,8 @@
 #include <fstream>
 #include <string>
 
+//TODO: Several functions are commented out since implementations are missing
+
 #define WRITE(type) DataOutBase::write_ ## type (patches, names, type ## flags, out)
 
 template <int dim, int spacedim>
@@ -31,15 +33,21 @@ write_patches(const std::vector<DataOutBase::Patch<dim,spacedim> >& patches,
   names[1] = std::string("last name");
 
   DataOutBase::DXFlags dxflags;
-//    DataOutBase::EpsFlags epsflags;
-//    DataOutBase::GnuplotFlags gnuplotflags;
-//    DataOutBase::GmvFlags gmvflags;
-//    DataOutBase::PovrayFlags povrayflags;
-//    DataOutBase::UcdFlags ucdflags;
-//    DataOutBase::VtkFlags vtkflags;
+//  DataOutBase::EpsFlags epsflags;
+  DataOutBase::GnuplotFlags gnuplotflags;
+  DataOutBase::GmvFlags gmvflags;
+  DataOutBase::PovrayFlags povrayflags;
+  DataOutBase::UcdFlags ucdflags;
+  DataOutBase::VtkFlags vtkflags;
   
   WRITE(dx);
-  
+//  WRITE(eps);
+  WRITE(gnuplot);
+  WRITE(gmv);
+  if (dim==2 && spacedim==2)
+    WRITE(povray);
+  WRITE(ucd);
+  WRITE(vtk);
 }
 
 template<int dim>
@@ -168,19 +176,31 @@ create_patches(std::vector<DataOutBase::Patch<dim,spacedim> >& patches)
 }
 
 
+template<int dim, int spacedim>
+void test(std::ostream& out)
+{
+  std::vector<DataOutBase::Patch<dim, spacedim> > patches;
+  create_patches(patches);
+  write_patches(patches, out);
+}
+
+
 int main()
 {
   std::ofstream logfile("data_out_base.output");
   deallog.attach(logfile);
   deallog.depth_console(0);
 
-  std::vector<DataOutBase::Patch<1,1> > patch11;
-  std::vector<DataOutBase::Patch<1,2> > patch12;
-  std::vector<DataOutBase::Patch<1,3> > patch13;
-  std::vector<DataOutBase::Patch<2,2> > patch22;
-  std::vector<DataOutBase::Patch<2,3> > patch23;
-  std::vector<DataOutBase::Patch<3,3> > patch33;
-
-  create_patches(patch33);
-  write_patches(patch33, logfile);
+//TODO: write_eps says ExcNotImplemented  
+//  test<1,1>(logfile);
+  test<1,2>(logfile);
+//TODO: Instantiations missing (linker error)  
+//  test<1,3>(logfile);
+  test<2,2>(logfile);
+  test<2,3>(logfile);
+  test<3,3>(logfile);
+//    test<1,4>(logfile);
+//    test<2,4>(logfile);
+//    test<3,4>(logfile);
+//    test<4,4>(logfile);
 }

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.