)
SET_PROPERTY(TARGET ${_test} APPEND PROPERTY
COMPILE_DEFINITIONS
- SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
+ SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
)
TARGET_LINK_LIBRARIES(${_test_name}.${_build_lowercase}
${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX}
{
- read_grid("SOURCE_DIR/grids/circle_R10.inp");
+ read_grid(SOURCE_DIR "/grids/circle_R10.inp");
Point<spacedim> p;
HyperBallBoundary<spacedim-1, spacedim> boundary(p,10.);
deallog.attach(logfile);
deallog.depth_console(0);
deallog << "Test<1,2>" << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp");
deallog << "Test<2,3>" << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp");
return 0;
}
GridIn<dim,dim+1> grid_in;
grid_in.attach_triangulation (triangulation);
- std::ifstream fname("square.msh");
+ std::ifstream fname("grids/square.msh");
grid_in.read_msh (fname);
dof_handler.distribute_dofs (fe);
GridIn<dim,dim+1> grid_in;
grid_in.attach_triangulation (triangulation);
- std::ifstream fname("data_out_02/square.msh");
+ std::ifstream fname("grids/square.msh");
grid_in.read_msh (fname);
dof_handler.distribute_dofs (fe);
deallog.threshold_double(1.e-12);
deallog<<"Test <1,2>"<<std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_4.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_4.inp");
deallog<<std::endl;
deallog<<"Test <2,3>"<<std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
-// test<2,3>("SOURCE_DIR/grids/sphere_2.inp");
-// test<2,3>("SOURCE_DIR/grids/sphere_3.inp");
-// test<2,3>("SOURCE_DIR/grids/sphere_4.inp");
+// test<2,3>(SOURCE_DIR "/grids/sphere_2.inp");
+// test<2,3>(SOURCE_DIR "/grids/sphere_3.inp");
+// test<2,3>(SOURCE_DIR "/grids/sphere_4.inp");
return 0;
}
deallog.threshold_double(1.e-12);
deallog<<"Test <1,2>, Q1, Q2, Q3"<<std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_4.inp",1);
- test<1,2>("SOURCE_DIR/grids/circle_4.inp",2);
- test<1,2>("SOURCE_DIR/grids/circle_4.inp",3);
+ test<1,2>(SOURCE_DIR "/grids/circle_4.inp",1);
+ test<1,2>(SOURCE_DIR "/grids/circle_4.inp",2);
+ test<1,2>(SOURCE_DIR "/grids/circle_4.inp",3);
deallog<<std::endl;
deallog<<"Test <2,3>, Q1, Q2, Q3"<<std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp",1);
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp",2);
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp",3);
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp",1);
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp",2);
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp",3);
return 0;
deallog.attach(logfile);
deallog.depth_console(0);
- test<1,2>("SOURCE_DIR/grids/circle_1.inp");
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.depth_console(0);
deallog << "Test<1,2>" << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_1.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp");
deallog << std::endl << "Test<1,2>" << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
for (unsigned int n=1; n<8; ++n)
{
deallog << "Test<1,2>, finite element q_" << n << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp",n);
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp",n);
deallog << "Test<1,2>, finite element q_" << n << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp",n);
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp",n);
}
return 0;
}
deallog.depth_console(0);
deallog << "Test<1,2>" << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp");
deallog << "Test<1,2>" << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp");
return 0;
}
deallog.depth_console(0);
deallog << "Test<1,2>" << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp");
deallog << "Test<1,2>" << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<1,2>("SOURCE_DIR/grids/circle_1.inp");
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<1,2>("SOURCE_DIR/grids/circle_1.inp");
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<1,2>("SOURCE_DIR/grids/circle_1.inp",1);
- test<1,2>("SOURCE_DIR/grids/circle_1.inp",2);
- test<2,3>("SOURCE_DIR/grids/square.inp",1);
- test<2,3>("SOURCE_DIR/grids/square.inp",2);
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp",1);
-// test<2,3>("SOURCE_DIR/grids/problem.inp",1);
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp",2);
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp",1);
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp",2);
+ test<2,3>(SOURCE_DIR "/grids/square.inp",1);
+ test<2,3>(SOURCE_DIR "/grids/square.inp",2);
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp",1);
+// test<2,3>(SOURCE_DIR "/grids/problem.inp",1);
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp",2);
return 0;
}
for (unsigned int n=1; n<5; n++)
{
deallog << "Test<1,2>, continous finite element q_" << n << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp",n);
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp",n);
deallog << "Test<2,3>, continous finite element q_" << n << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp",n);
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp",n);
}
return 0;
}
for (unsigned int n=1; n<5; n++)
{
deallog << "Test<1,2>, continous finite element q_" << n << std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_2.inp",n);
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp",n);
deallog << "Test<2,3>, continous finite element q_" << n << std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp",n);
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp",n);
}
return 0;
}
deallog.attach(logfile);
deallog.depth_console(0);
- test<2,3>("SOURCE_DIR/grids/square.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/square.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
return 0;
}
deallog.depth_console(0);
deallog<<"Test <1,2>"<<std::endl;
- test<1,2>("SOURCE_DIR/grids/circle_1.inp");
- test<1,2>("SOURCE_DIR/grids/circle_2.inp");
- test<1,2>("SOURCE_DIR/grids/circle_3.inp");
- test<1,2>("SOURCE_DIR/grids/circle_4.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_1.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_2.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_3.inp");
+ test<1,2>(SOURCE_DIR "/grids/circle_4.inp");
deallog<<"Test <2,3>"<<std::endl;
- test<2,3>("SOURCE_DIR/grids/sphere_1.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_2.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_3.inp");
- test<2,3>("SOURCE_DIR/grids/sphere_4.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_1.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_2.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_3.inp");
+ test<2,3>(SOURCE_DIR "/grids/sphere_4.inp");
return 0;
}