deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- test ("grid_in_3d/1.in");
- test ("grid_in_3d/2.in");
- test ("grid_in_3d/3.in");
- test ("grid_in_3d/4.in");
+ test (SOURCE_DIR "/grid_in_3d/1.in");
+ test (SOURCE_DIR "/grid_in_3d/2.in");
+ test (SOURCE_DIR "/grid_in_3d/3.in");
+ test (SOURCE_DIR "/grid_in_3d/4.in");
- test ("grid_in_3d/evil_0.in");
- test ("grid_in_3d/evil_4.in");
+ test (SOURCE_DIR "/grid_in_3d/evil_0.in");
+ test (SOURCE_DIR "/grid_in_3d/evil_4.in");
}
Triangulation<dim> tria;
GridIn<dim> gi;
gi.attach_triangulation (tria);
- std::ifstream in ("2d.inp");
+ std::ifstream in (SOURCE_DIR "/grid_in/2d.inp");
gi.read_ucd (in);
GridOut grid_out;
Triangulation<dim> tria (Triangulation<dim>::none, true);
GridIn<dim> gi;
gi.attach_triangulation (tria);
- std::ifstream in ("2d.xda");
+ std::ifstream in (SOURCE_DIR "/grid_in/2d.xda");
try
{
gi.read_xda (in);
Triangulation<dim> tria;
GridIn<dim> gi;
gi.attach_triangulation (tria);
- gi.read ("2d.nc");
+ gi.read (SOURCE_DIR "/grid_in/2d.nc");
GridOut grid_out;
std::ofstream gnufile("grid_in_2d.gnuplot");
void filename_resolution()
{
- check_file<2> (std::string("2d"), GridIn<2>::ucd);
- check_file<2> (std::string("2d"), GridIn<2>::xda);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in/2d"), GridIn<2>::ucd);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in/2d"), GridIn<2>::xda);
}
Triangulation<dim> tria (Triangulation<dim>::none, true);
GridIn<dim> gi;
gi.attach_triangulation (tria);
- std::ifstream in ("2d.xda");
+ std::ifstream in (SOURCE_DIR "/grid_in_02/2d.xda");
try
{
gi.read_xda (in);
void filename_resolution()
{
- check_file<2> (std::string("mesh"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh/mesh"), GridIn<2>::msh);
}
void filename_resolution()
{
- check_file<2> (std::string("mesh"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_02/mesh"), GridIn<2>::msh);
}
void filename_resolution()
{
- check_file<2> (std::string("mesh"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_03/mesh"), GridIn<2>::msh);
}
void filename_resolution()
{
- check_file<2> (std::string("input_v1"), GridIn<2>::msh);
- check_file<2> (std::string("input_v2"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_version_1/input_v1"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_version_1/input_v2"), GridIn<2>::msh);
}
void filename_resolution()
{
- check_file<2> (std::string("hole81"), GridIn<2>::msh);
- check_file<2> (std::string("hole8170"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_version_2/hole81"), GridIn<2>::msh);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_msh_version_2/hole8170"), GridIn<2>::msh);
}
int main ()
{
- test<2> ("1.dat");
- test<2> ("2.dat");
- test<2> ("3.dat");
- test<2> ("4.dat");
+ test<2> (std::string(SOURCE_DIR "/grid_in_tecplot/1.dat"));
+ test<2> (std::string(SOURCE_DIR "/grid_in_tecplot/2.dat"));
+ test<2> (std::string(SOURCE_DIR "/grid_in_tecplot/3.dat"));
+ test<2> (std::string(SOURCE_DIR "/grid_in_tecplot/4.dat"));
}
void filename_resolution()
{
- check_file<2> (std::string("test1427"), GridIn<2>::unv);
- check_file<2> (std::string("test46"), GridIn<2>::unv);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_unv_2d/test1427"), GridIn<2>::unv);
+ check_file<2> (std::string(SOURCE_DIR "/grid_in_unv_2d/test46"), GridIn<2>::unv);
}
void filename_resolution()
{
- check_file<3> (std::string("3D"), GridIn<3>::unv);
+ check_file<3> (std::string(SOURCE_DIR "/grid_in_unv_3d/3D"), GridIn<3>::unv);
}