From 474785b8e7d50b75b7cbcb59392282efd2784980 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Sat, 16 Nov 2013 20:23:36 +0000
Subject: [PATCH] Revert "BUG: displacementLaplacianMotionSolver: startup
 evaluation of point bcs (since not solved for)"

This reverts commit 5dea505798e3479f2ec9f0296287796b20753d8f.
---
 .../displacementLaplacianFvMotionSolver.C     | 27 ++++++-------------
 1 file changed, 8 insertions(+), 19 deletions(-)

diff --git a/src/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.C b/src/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.C
index 0fec1e88561..35db99fe0d7 100644
--- a/src/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.C
+++ b/src/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2012 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -88,24 +88,6 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
       : -1
     )
 {
-    if (debug)
-    {
-        Info<< "displacementLaplacianFvMotionSolver:" << nl
-            << "    diffusivity       : " << diffusivityPtr_().type() << nl
-            << "    frozenPoints zone : " << frozenPointsZone_ << endl;
-    }
-
-    // Weird one: if using bc on pointDisplacement that updateCoeffs()
-    // at construction time:
-    // - read pointDisplacement, some bcs do updateCoeffs
-    // - time gets incremented
-    // - laplacianMotionSolver::solve() : now uses (old!) bc values
-    // - laplacianMotionSolver::curPoints() : finally does
-    //      pointDisplacement::correctBoundaryConditions
-    // So first iteration uses old values (but future ones are ok)
-    // So:
-    pointDisplacement_.correctBoundaryConditions();
-
     IOobject io
     (
         "pointLocation",
@@ -115,6 +97,13 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
         IOobject::AUTO_WRITE
     );
 
+    if (debug)
+    {
+        Info<< "displacementLaplacianFvMotionSolver:" << nl
+            << "    diffusivity       : " << diffusivityPtr_().type() << nl
+            << "    frozenPoints zone : " << frozenPointsZone_ << endl;
+    }
+
 
     if (io.headerOk())
     {
-- 
GitLab