From 8cf0f3a0bdc4c61a827634d7a1c64e73af615ea7 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Sat, 23 Apr 2016 13:29:14 +0200
Subject: [PATCH] [MaL] changed spelling ode -> ODE

---
 MathLib/ODE/CVodeSolver.cpp                   |  4 ++--
 MathLib/ODE/CVodeSolver.h                     |  2 +-
 ...oncreteOdeSolver.h => ConcreteODESolver.h} | 24 +++++++++----------
 MathLib/ODE/FunctionHandles.h                 |  2 +-
 MathLib/ODE/{OdeSolver.h => ODESolver.h}      |  6 ++---
 .../{OdeSolverTypes.h => ODESolverTypes.h}    |  0
 6 files changed, 19 insertions(+), 19 deletions(-)
 rename MathLib/ODE/{ConcreteOdeSolver.h => ConcreteODESolver.h} (83%)
 rename MathLib/ODE/{OdeSolver.h => ODESolver.h} (95%)
 rename MathLib/ODE/{OdeSolverTypes.h => ODESolverTypes.h} (100%)

diff --git a/MathLib/ODE/CVodeSolver.cpp b/MathLib/ODE/CVodeSolver.cpp
index 2fd48c3d145..a38cf686d0d 100644
--- a/MathLib/ODE/CVodeSolver.cpp
+++ b/MathLib/ODE/CVodeSolver.cpp
@@ -61,11 +61,11 @@ namespace MathLib
 /**
  * This class provides concrete access to Sundials' CVode solver.
  *
- * OdeSolver (implicitly bounds checked, agnostic to concrete ODE solver)
+ * ODESolver (implicitly bounds checked, agnostic to concrete ODE solver)
  *  |
  *  | Dynamic polymorphism
  *  v
- * ConcreteOdeSolver (implicitly bounds checked, interfaces with a specific
+ * ConcreteODESolver (implicitly bounds checked, interfaces with a specific
  * library)
  *  |
  *  | Forward calls, disable bounds checking, no need for templates anymore
diff --git a/MathLib/ODE/CVodeSolver.h b/MathLib/ODE/CVodeSolver.h
index c36e55e0a2f..8c5ca3d5cf5 100644
--- a/MathLib/ODE/CVodeSolver.h
+++ b/MathLib/ODE/CVodeSolver.h
@@ -12,7 +12,7 @@
 
 #include "BaseLib/ConfigTree.h"
 
-#include "OdeSolverTypes.h"
+#include "ODESolverTypes.h"
 #include "FunctionHandles.h"
 
 namespace MathLib
diff --git a/MathLib/ODE/ConcreteOdeSolver.h b/MathLib/ODE/ConcreteODESolver.h
similarity index 83%
rename from MathLib/ODE/ConcreteOdeSolver.h
rename to MathLib/ODE/ConcreteODESolver.h
index 06dad3d19c8..a0022dae8ae 100644
--- a/MathLib/ODE/ConcreteOdeSolver.h
+++ b/MathLib/ODE/ConcreteODESolver.h
@@ -14,7 +14,7 @@
 
 #include "BaseLib/ConfigTree.h"
 
-#include "OdeSolver.h"
+#include "ODESolver.h"
 #include "FunctionHandles.h"
 
 #ifdef CVODE_FOUND
@@ -24,17 +24,17 @@
 namespace MathLib
 {
 template <unsigned NumEquations>
-std::unique_ptr<OdeSolver<NumEquations>> createOdeSolver(
+std::unique_ptr<ODESolver<NumEquations>> createODESolver(
     BaseLib::ConfigTree const& config);
 
 /**
  * ODE solver with a bounds-safe interface.
  *
- * This class makes contact between the abstract \c OdeSolver interface and a
+ * This class makes contact between the abstract \c ODESolver interface and a
  * certain solver \c Implementation.
  *
  * The interface of this class inherits the array bounds checking from \c
- * OdeSolver.
+ * ODESolver.
  * Its methods forward calls to the \c Implementation erasing array bounds info
  * by
  * passing \c std::array as raw pointer.
@@ -42,11 +42,11 @@ std::unique_ptr<OdeSolver<NumEquations>> createOdeSolver(
  * This way the \c Implementation does not need to be templated.
  */
 template <typename Implementation, unsigned NumEquations>
-class ConcreteOdeSolver final : public OdeSolver<NumEquations>,
+class ConcreteODESolver final : public ODESolver<NumEquations>,
                                 private Implementation
 {
 public:
-	using Interface = OdeSolver<NumEquations>;
+	using Interface = ODESolver<NumEquations>;
 	using Function = typename Interface::Function;
 	using JacobianFunction = typename Interface::JacobianFunction;
 
@@ -101,22 +101,22 @@ public:
 private:
 	/// instances of this class shall only be constructed by
 	/// the friend function listed below
-	ConcreteOdeSolver(BaseLib::ConfigTree const& config)
+	ConcreteODESolver(BaseLib::ConfigTree const& config)
 	    : Implementation{config, NumEquations}
 	{
 	}
 
-	friend std::unique_ptr<OdeSolver<NumEquations>>
-	createOdeSolver<NumEquations>(BaseLib::ConfigTree const& config);
+	friend std::unique_ptr<ODESolver<NumEquations>>
+	createODESolver<NumEquations>(BaseLib::ConfigTree const& config);
 };
 
 template <unsigned NumEquations>
-std::unique_ptr<OdeSolver<NumEquations>> createOdeSolver(
+std::unique_ptr<ODESolver<NumEquations>> createODESolver(
     BaseLib::ConfigTree const& config)
 {
 #ifdef CVODE_FOUND
-	return std::unique_ptr<OdeSolver<NumEquations>>(
-	    new ConcreteOdeSolver<CVodeSolver, NumEquations>(config));
+	return std::unique_ptr<ODESolver<NumEquations>>(
+	    new ConcreteODESolver<CVodeSolver, NumEquations>(config));
 #else
 	return nullptr;
 #endif  // CVODE_FOUND
diff --git a/MathLib/ODE/FunctionHandles.h b/MathLib/ODE/FunctionHandles.h
index 03023aeb085..26e3eee1a59 100644
--- a/MathLib/ODE/FunctionHandles.h
+++ b/MathLib/ODE/FunctionHandles.h
@@ -10,7 +10,7 @@
 #ifndef MATHLIB_ODE_HANDLES_H
 #define MATHLIB_ODE_HANDLES_H
 
-#include "OdeSolverTypes.h"
+#include "ODESolverTypes.h"
 
 namespace MathLib
 {
diff --git a/MathLib/ODE/OdeSolver.h b/MathLib/ODE/ODESolver.h
similarity index 95%
rename from MathLib/ODE/OdeSolver.h
rename to MathLib/ODE/ODESolver.h
index 800caa377cb..fdc2b26908f 100644
--- a/MathLib/ODE/OdeSolver.h
+++ b/MathLib/ODE/ODESolver.h
@@ -12,7 +12,7 @@
 
 #include <array>
 
-#include "OdeSolverTypes.h"
+#include "ODESolverTypes.h"
 
 namespace MathLib
 {
@@ -24,7 +24,7 @@ namespace MathLib
  * ODE solver libraries. However, it is agnostic to the specific solver used.
  */
 template <unsigned NumEquations>
-class OdeSolver
+class ODESolver
 {
 public:
 	using Function = MathLib::Function<NumEquations>;
@@ -51,7 +51,7 @@ public:
 	virtual Eigen::Matrix<double, NumEquations, 1, Eigen::ColMajor> getYDot(
 	    const double t, const MappedConstVector<NumEquations>& y) const = 0;
 
-	virtual ~OdeSolver() = default;
+	virtual ~ODESolver() = default;
 };
 
 }  // namespace MathLib
diff --git a/MathLib/ODE/OdeSolverTypes.h b/MathLib/ODE/ODESolverTypes.h
similarity index 100%
rename from MathLib/ODE/OdeSolverTypes.h
rename to MathLib/ODE/ODESolverTypes.h
-- 
GitLab