]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Take over r30122 - r30124 from trunk
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 23 Jul 2013 09:24:00 +0000 (09:24 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 23 Jul 2013 09:24:00 +0000 (09:24 +0000)
git-svn-id: https://svn.dealii.org/branches/releases/Branch-8-0@30126 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_enable_language_optional.cmake
deal.II/cmake/setup_compiler_flags_gnu.cmake
deal.II/source/dofs/dof_tools.inst.in

index 975f4760598d997a73a9c414e71ea45a445684ed..885b960f8c47e52b43a83210f6d029ca3b19fe8b 100644 (file)
@@ -48,8 +48,9 @@ MACRO(ENABLE_LANGUAGE_OPTIONAL _language)
     FILE(WRITE ${_tmp}/CMakeLists.txt
       "PROJECT(foobar ${_language})"
       )
+
     EXECUTE_PROCESS(
-      COMMAND ${CMAKE_COMMAND} ${_hint} .
+      COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${_hint} .
       WORKING_DIRECTORY ${_tmp}
       RESULT_VARIABLE _result
       OUTPUT_QUIET
index 45d88b1975127158fc07c3d0fdaf27d94bab2db7..1c64fcd1040ba96d6b7ea9e8f5b57d49b584e948 100644 (file)
@@ -81,6 +81,11 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations")
 
 
 IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+  #
+  # Silence Clang warnings about unused parameters:
+  #
+  SET(CMAKE_CXX_FLAGS "-Qunused-arguments ${CMAKE_CXX_FLAGS}")
+
   #
   # *Boy*, clang seems to be the very definition of "pedantic" in
   # "-pedantic" mode, so disable a bunch of harmless warnings
@@ -120,7 +125,9 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release")
   ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2")
 
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops")
-  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops")
+  IF(NOT(CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
+    ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops")
+  ENDIF()
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-fstrict-aliasing")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-felide-constructors")
 
index d5d3b5dba2815483ed29d748b77f3cc395c512ad..17d1beaa6caae0580143f1fd7da74d51ae016837 100644 (file)
@@ -296,11 +296,11 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
      const std::vector<types::global_dof_index>  &,
      SP    &);
 
-    //template void
-    //DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<1,3>,SP>
-    //(const hp::DoFHandler<1,3>& dof,
-    // const std::vector<types::global_dof_index>  &,
-    // SP    &);
+    template void
+    DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<1,3>,SP>
+    (const hp::DoFHandler<1,3>& dof,
+     const std::vector<types::global_dof_index>  &,
+     SP    &);
 
     template void
     DoFTools::make_boundary_sparsity_pattern<DoFHandler<1,3>,SP>
@@ -309,12 +309,12 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
      const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
      SP    &sparsity);
 
-    //template void
-    //DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<1,3>,SP>
-    //(const hp::DoFHandler<1,3>& dof,
-    // const FunctionMap<3>::type  &boundary_indicators,
-    // const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
-    // SP    &sparsity);
+    template void
+    DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<1,3>,SP>
+    (const hp::DoFHandler<1,3>& dof,
+     const FunctionMap<3>::type  &boundary_indicators,
+     const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+     SP    &sparsity);
 
 #endif
 
@@ -1179,18 +1179,18 @@ DoFTools::extract_hanging_node_dofs
 (const DoFHandler<1,3> &dof_handler,
  std::vector<bool>     &selected_dofs);
 
-// template
-// void
-// DoFTools::map_dof_to_boundary_indices<hp::DoFHandler<1,3> >
-// (const hp::DoFHandler<1,3> &,
-//  const std::set<unsigned char> &,
-//  std::vector<types::global_dof_index> &);
-
-// template
-// void
-// DoFTools::map_dof_to_boundary_indices<hp::DoFHandler<1,3> >
-// (const hp::DoFHandler<1,3> &,
-//  std::vector<types::global_dof_index> &);
+template
+void
+DoFTools::map_dof_to_boundary_indices<hp::DoFHandler<1,3> >
+(const hp::DoFHandler<1,3> &,
+ const std::set<unsigned char> &,
+ std::vector<types::global_dof_index> &);
+
+template
+void
+DoFTools::map_dof_to_boundary_indices<hp::DoFHandler<1,3> >
+(const hp::DoFHandler<1,3> &,
+ std::vector<types::global_dof_index> &);
 
 #endif
 

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.