}
+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)
test1<2> ();
test2<2> ();
-
+ // test3 needs NetCDF
+// test3<2> ();
+
filename_resolution();
}
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 ()
{
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