From 6043c9621d1623981c06995903a3d34399948818 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Sat, 3 Nov 2018 17:25:51 +0100
Subject: [PATCH] STYLE: accept "solver" or "motionSolver" without complaint

- The change from "solver" to "motionSolver" has not been
  applied consistently for all types of motion solvers.
---
 src/dynamicMesh/motionSolvers/motionSolver/motionSolver.C | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/dynamicMesh/motionSolvers/motionSolver/motionSolver.C b/src/dynamicMesh/motionSolvers/motionSolver/motionSolver.C
index 924f2ee9a62..580f2453d05 100644
--- a/src/dynamicMesh/motionSolvers/motionSolver/motionSolver.C
+++ b/src/dynamicMesh/motionSolvers/motionSolver/motionSolver.C
@@ -105,9 +105,11 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
     const IOdictionary& solverDict
 )
 {
+    // The change from "solver" to "motionSolver" has not been
+    // applied consistently. Accept both without complaint.
     const word solverName
     (
-        solverDict.getCompat<word>("motionSolver", {{"solver", 1612}})
+        solverDict.getCompat<word>("motionSolver", {{"solver", -1612}})
     );
 
     Info<< "Selecting motion solver: " << solverName << nl;
-- 
GitLab