]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Fix warnings. 180/head
authorMarc Fehling <mafehling.git@gmail.com>
Mon, 24 Jun 2024 11:26:04 +0000 (13:26 +0200)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 24 Jun 2024 12:56:42 +0000 (14:56 +0200)
nonlinear-heat_transfer_with_AD_NOX/include/nonlinear_heat.h
nonlinear-heat_transfer_with_AD_NOX/source/boundary_values.cc
nonlinear-heat_transfer_with_AD_NOX/source/initial_conditions.cc
parallel_in_time/src/Utilities.cc

index fb95a02d0f96487b6a749cbaa423fd94b91ebe20..21502a953858413f192c86d9183867594d6005fe 100755 (executable)
@@ -120,7 +120,7 @@ public:
    {}
    // Returns the intitial  values.
     virtual double value(const Point<2> &p,
-                              const unsigned int component =0) const;
+                              const unsigned int component =0) const override;
 };
 
 /** A class to apply the boundary (Dirichlet) condition at the left edge.
index 8d4f6895396d7aef6e400332bcb037838e818919..4facac4718758f91407ad6eef9efe0686c5c1de4 100644 (file)
@@ -9,16 +9,16 @@
  * @param p A point (2D)
  * @return Value at the boundary
  */
-double Boundary_values_left::value(const Point<2> &p, const unsigned int) const
+double Boundary_values_left::value(const Point<2> & /*p*/, const unsigned int /*comp*/) const
 {
-    
-    nonlinear_heat  nlheat;
-    double total_time = nlheat.tot_time;
     return 100;
+
     /**
      * To linearly ramp the temperature at the left end to 100 over the
      * entire time span, use the below line. See step-23 as to how the time
      * variable can be used.
      */
-    // this->get_time() * 100.0/total_time;
+    // nonlinear_heat nlheat;
+    // double total_time = nlheat.tot_time;
+    // return this->get_time() * 100.0/total_time;
 }
index 44d559c6af2c54bd5971a4f0e7095b564d7bb21f..55079421b458807af1965e92e9929875b6dd2844 100644 (file)
@@ -5,7 +5,7 @@
  * @param comp component
  * @return
  */
-double Initialcondition::value(const Point<2> &p, const unsigned int comp) const
+double Initialcondition::value(const Point<2> & /*p*/, const unsigned int /*comp*/) const
 {
     /**
      * In the current case, we asume that the initial conditions are zero everywhere.
index 785ecbbfbfcf8f520b26e42c994d3e4aa924352e..99c8a4065aeabb73a02d50e428c896e4883dc84c 100644 (file)
@@ -17,6 +17,7 @@
 
 int procID = 0;
 
+#ifdef USE_MPI
 // The shared variables
 
 static std::string       s_pout_filename ;
@@ -26,7 +27,6 @@ static std::ofstream     s_pout ;
 static bool              s_pout_init = false ;
 static bool              s_pout_open = false ;
 
-#ifdef USE_MPI
 // in parallel, compute the filename give the basename
 //[NOTE: dont call this before MPI is initialized.]
 static void setFileName()
@@ -49,18 +49,6 @@ static void openFile()
   // to try again later than to make believe it succeeded
   s_pout_open = (bool)s_pout ;
 }
-
-#else
-// in serial, filename is always cout
-static void setFileName()
-{
-  s_pout_filename = "cout" ;
-}
-
-// in serial, this does absolutely nothing
-static void openFile()
-{
-}
 #endif
 
 std::ostream& pout()

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.