]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Include tests for read_netcdf. Leave them disabled.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 22 Sep 2005 13:08:06 +0000 (13:08 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 22 Sep 2005 13:08:06 +0000 (13:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@11500 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/grid_in.cc
tests/deal.II/grid_in_3d.cc

index 84ad871412e86e6864199c9b99bb597753454e68..99eaaef64f8d98a983168f0683eebb881a655e7c 100644 (file)
@@ -70,6 +70,20 @@ void test2 ()
 }
 
 
+template <int dim>
+void test3 ()
+{
+  Triangulation<dim> tria;
+  GridIn<dim> gi;
+  gi.attach_triangulation (tria);
+  gi.read ("grid_in_2d.nc");
+
+  GridOut grid_out;
+  ofstream gnufile("grid_in_2d.gnuplot");  
+  grid_out.write_gnuplot (tria, gnufile);
+}
+
+
 template<int dim>
 void check_file (const std::string name,
                 typename GridIn<dim>::Format format)
@@ -100,7 +114,9 @@ int main ()
 
   test1<2> ();
   test2<2> ();
-  
+                                  // test3 needs NetCDF
+//    test3<2> ();
+
   filename_resolution();
 }
 
index fb5802e9a73c180c9b1d7857b48414a18dc8a5be..bc22d97c33f2d9cd22e49d0e3b20c483a2fe36e6 100644 (file)
@@ -68,6 +68,20 @@ void test (const char *filename)
   deallog << "  hash=" << hash << std::endl;
 }
 
+void test1()
+{
+  Triangulation<3> tria;
+  GridIn<3> gi;
+  gi.attach_triangulation (tria);
+  gi.read ("grid_in_3d_1.nc");
+  
+  GridOut grid_out;
+  ofstream gnufile("square.gnuplot");
+  grid_out.write_gnuplot (tria, gnufile);
+}
+
+
+
 
 int main ()
 {
@@ -86,5 +100,8 @@ int main ()
   test ("grid_in_3d_evil_2.in");
   test ("grid_in_3d_evil_3.in");
   test ("grid_in_3d_evil_4.in");
+  
+                                  // test1 needs NetCDF
+//    test1 ();
 }
 

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.