From 5984c90eaabbe7e9b7a896b3fc5f634f876cfe8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz>
Date: Thu, 20 Sep 2018 12:30:37 +0200
Subject: [PATCH] Shut up compiler warnings due to heat equation

---
 .../HeatEquation/HeatEquationBenchmarkProblem_impl.h | 12 +++++++-----
 .../HeatEquation/HeatEquationBenchmarkRhs.h          |  4 ++--
 .../HeatEquation/tnl-benchmark-heat-equation.h       |  1 +
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/Benchmarks/HeatEquation/HeatEquationBenchmarkProblem_impl.h b/src/Benchmarks/HeatEquation/HeatEquationBenchmarkProblem_impl.h
index d4587e75f0..6a29ec9380 100644
--- a/src/Benchmarks/HeatEquation/HeatEquationBenchmarkProblem_impl.h
+++ b/src/Benchmarks/HeatEquation/HeatEquationBenchmarkProblem_impl.h
@@ -52,13 +52,14 @@ HeatEquationBenchmarkProblem< Mesh, BoundaryCondition, RightHandSide, Differenti
 getPrologHeader() const
 {
    if( this->cudaKernelType == "pure-c" )
-      return String( "Heat Equation Benchmark PURE-C test" );
+      return "Heat Equation Benchmark PURE-C test";
    if( this->cudaKernelType == "templated" )
-      return String( "Heat Equation Benchmark TEMPLATED test" );
+      return "Heat Equation Benchmark TEMPLATED test";
    if( this->cudaKernelType == "templated-compact" )
-      return String( "Heat Equation Benchmark TEMPLATED COMPACT test" );
+      return "Heat Equation Benchmark TEMPLATED COMPACT test";
    if( this->cudaKernelType == "tunning" )
-      return String( "Heat Equation Benchmark TUNNIG test" );            
+      return "Heat Equation Benchmark TUNNIG test";
+   return "";
 }
 
 template< typename Mesh,
@@ -706,11 +707,12 @@ applyBoundaryConditions( const RealType& time,
 #endif
       userData.boundaryConditions = &this->boundaryConditionPointer.template getData< Devices::Cuda >();
       Meshes::Traverser< MeshType, Cell > meshTraverser;
+      // */
       /*meshTraverser.template processBoundaryEntities< UserData,
                                                 BoundaryEntitiesProcessor >
                                                     ( mesh,
                                                       userData );*/
-      // */
+
       /*_boundaryConditionsKernel< BoundaryEntitiesProcessor, UserData, MeshType, RealType, IndexType >
       <<< cudaGridSize, cudaBlockSize >>>
          ( &mesh.template getData< Devices::Cuda >(),
diff --git a/src/Benchmarks/HeatEquation/HeatEquationBenchmarkRhs.h b/src/Benchmarks/HeatEquation/HeatEquationBenchmarkRhs.h
index dd4f33bc22..b2fef66caa 100644
--- a/src/Benchmarks/HeatEquation/HeatEquationBenchmarkRhs.h
+++ b/src/Benchmarks/HeatEquation/HeatEquationBenchmarkRhs.h
@@ -20,8 +20,8 @@ template< typename Mesh, typename Real >class HeatEquationBenchmarkRhs
       Real operator()( const MeshEntity& entity,
                        const Real& time = 0.0 ) const
       {
-         typedef typename MeshEntity::MeshType::PointType PointType;
-         PointType v = entity.getCenter();
+         //typedef typename MeshEntity::MeshType::PointType PointType;
+         //PointType v = entity.getCenter();
          return 0.0;
       }
 };
diff --git a/src/Benchmarks/HeatEquation/tnl-benchmark-heat-equation.h b/src/Benchmarks/HeatEquation/tnl-benchmark-heat-equation.h
index a617dcc6bf..1906508db4 100644
--- a/src/Benchmarks/HeatEquation/tnl-benchmark-heat-equation.h
+++ b/src/Benchmarks/HeatEquation/tnl-benchmark-heat-equation.h
@@ -100,6 +100,7 @@ class HeatEquationBenchmarkSetter
           typedef HeatEquationBenchmarkProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator, CommunicatorType > Problem;
           SolverStarter solverStarter;
           return solverStarter.template run< Problem >( parameters );*/
+          return false;
       }
 
 };
-- 
GitLab