]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Get the SOURCE_DIR right
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 21 Aug 2013 20:05:34 +0000 (20:05 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 21 Aug 2013 20:05:34 +0000 (20:05 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30383 0785d39b-7218-0410-832d-ea1e28bc413d

23 files changed:
deal.II/cmake/macros/macro_deal_ii_add_test.cmake
tests/codim_one/bem.cc
tests/codim_one/data_out.cc
tests/codim_one/data_out_02.cc
tests/codim_one/fe_values_extractor_01.cc
tests/codim_one/gradients.cc
tests/codim_one/gradients_1.cc
tests/codim_one/grid_in_out.cc
tests/codim_one/grid_in_out_02.cc
tests/codim_one/grid_in_out_03.cc
tests/codim_one/grid_refinement.cc
tests/codim_one/interpolate_boundary_values_01.cc
tests/codim_one/interpolate_boundary_values_01_vector_valued.cc
tests/codim_one/interpolation.cc
tests/codim_one/interpolation_2.cc
tests/codim_one/interpolation_3.cc
tests/codim_one/mapping_q1.cc
tests/codim_one/mapping_q1_eulerian.cc
tests/codim_one/mapping_q_eulerian.cc
tests/codim_one/projection.cc
tests/codim_one/projection_dgp.cc
tests/codim_one/renumber_component_wise_01.cc
tests/codim_one/surface.cc

index 182472015f6e7d9102ec6918f454386c7f5c08ed..babe0bf63d607cecf1aceed2ef92266726582e73 100644 (file)
@@ -70,7 +70,7 @@ MACRO(DEAL_II_ADD_TEST _category _test_name)
         )
       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}
index d020a959b437a34e44dc490bd43059d1467a5aef..2a5a8b6beff2407c7e06d6b2defa7b827cd799fb 100644 (file)
@@ -126,7 +126,7 @@ BEM<spacedim>::run()
     {
 
 
-      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.);
index dfb06699ccf6a48f9be432310c3c3c2077b6102a..94ad28ef19f4939a99ab2da2d4e23ac1a073ff1a 100644 (file)
@@ -80,10 +80,10 @@ int main ()
   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;
 }
index 8225f5615f632ba18b57ba2c87fe9950ff6d674b..cde3b641340abef5d4ac3344fce84b8a8536233f 100644 (file)
@@ -53,7 +53,7 @@ int main ()
 
   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);
index f8fe854ac7dbd00a439c94d255cb44da18094c88..2a894accb8dd288f2400afc0aeea931e99a31278 100644 (file)
@@ -57,7 +57,7 @@ int main ()
 
   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);
index 8d100fdd68723b3328268e486333ee1909c2e1dc..693d46091dd16b991730f9a27fc4efeb56d75c66 100644 (file)
@@ -206,16 +206,16 @@ int main ()
   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;
 }
index 231c383d5c4815ca991b1c77dca41b3937bd10b9..2f1bb776ff90211bdb4352b5e93d8b9396d49f49 100644 (file)
@@ -122,16 +122,16 @@ int main ()
   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;
index 0692fc2d219639b3344d2fb33ebf9179a9ff4cfc..4abeca34ac3f372731aa5799c69eb0554d555796 100644 (file)
@@ -49,9 +49,9 @@ int main ()
   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;
 }
index 95bd20e56bd6c05ac14b7bf46cb71f68558f9012..7d9af70586d92bb4c2a51a29bc3fdfb68a15f2ef 100644 (file)
@@ -47,8 +47,8 @@ int main ()
   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;
 }
index ef8bb1f3542fda5f41c8f5095d4d19978ebd31d9..9816190e8664d983dd4dd06d03241571c274b908 100644 (file)
@@ -62,8 +62,8 @@ int main ()
   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;
 }
index 19b1db0f20cbf56d191559c9163f5e07937891e5..9815e309650ca0981390bb6126f5afc1cfc64213 100644 (file)
@@ -60,10 +60,10 @@ int main ()
   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;
 }
index 9cee218c7f4be32f4c0fb30a292c3117b75e7bca..2c9e20aa6afa49767441beef01d1dac8a0a39c4c 100644 (file)
@@ -85,8 +85,8 @@ int main ()
   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;
 }
index 2fe3f145d61bf4085c3dd882cf77cef37d185b81..dc4aa7ee674e9321f4443c185a5d6e75722f8550 100644 (file)
@@ -101,8 +101,8 @@ int main ()
   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;
 }
index c90f446b462592a8883ed996051501478b8fd70a..a771ca8148054c1124958f97580afc6cfd31aac1 100644 (file)
@@ -89,10 +89,10 @@ int main ()
   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;
 }
index b227a494844ee2081af6a71cc3aed0a4c6a2eb99..c6f93c49f6bf49f26b45cea72ae30a69d7e212d3 100644 (file)
@@ -84,10 +84,10 @@ int main ()
   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;
 }
index bdda97549fd45bc9f81557ba89beb290b1b841b6..a695c20b8571de40f70cf2a1b683fa65139d433d 100644 (file)
@@ -93,10 +93,10 @@ int main ()
   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;
 }
index 1c050a374c91f23250c928d57bbe092774d106c4..d218f00eb7eeeefb0f79969b62aa19f0a65c5100 100644 (file)
@@ -78,9 +78,9 @@ int main ()
   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;
 }
index cf8c616de0cfd9c09a25206d77890546b97f8059..31fea594ef1110bdc413e2878b0cf96b7ed3026c 100644 (file)
@@ -91,9 +91,9 @@ int main ()
   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;
 }
index 0a7df86893dea4ba1150a15aa7d650d5e52ba23a..81c20ea5f7044d66c8386d508cf58e06d2581a85 100644 (file)
@@ -92,13 +92,13 @@ int main ()
   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;
 }
index 1f76b0c4f80c60914d61f1b31cee0836e96333c4..c2fdac3481d877ae5924ca2b5c869cae88679b6c 100644 (file)
@@ -93,10 +93,10 @@ int main ()
   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;
 }
index 7e5c353e99cc9b7f20bb238a0ef5faee8957fe88..8c571b9c873f745c60fc0544d968099a262cdc95 100644 (file)
@@ -94,10 +94,10 @@ int main ()
   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;
 }
index eb932e0710f4feffbad0ffe595e1dd5fb31b922e..c4798b00bf918397a4e2f9768afd3b9163bb89e4 100644 (file)
@@ -71,8 +71,8 @@ int main ()
   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;
 }
index e04e303557589cdde002556a76242d1f30af9ba2..79125a0932a8e48a7f1cfccc979b995bbc4eb3c5 100644 (file)
@@ -105,16 +105,16 @@ int main ()
   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;
 }

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.