From 101b52d260cf0cf1dba946375022f1dcbb450745 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 8 Nov 2010 23:29:05 +0000 Subject: [PATCH 1/2] Bug fix: making copy on object registry lookup --- .../functionObjects/utilities/dsmcFields/dsmcFields.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postProcessing/functionObjects/utilities/dsmcFields/dsmcFields.C b/src/postProcessing/functionObjects/utilities/dsmcFields/dsmcFields.C index fa2f59409..3166856af 100644 --- a/src/postProcessing/functionObjects/utilities/dsmcFields/dsmcFields.C +++ b/src/postProcessing/functionObjects/utilities/dsmcFields/dsmcFields.C @@ -138,7 +138,7 @@ void Foam::dsmcFields::write() iDofMeanName ); - volVectorField fDMean = obr_.lookupObject + const volVectorField& fDMean = obr_.lookupObject ( fDMeanName ); From 86498c8202063ba7dc7fcaea85c8d645cb937afe Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 9 Nov 2010 00:57:21 +0000 Subject: [PATCH 2/2] Fixing tutorials, 4 --- .../mesh/moveDynamicMesh/SnakeRiverCanyon/Allrun | 12 ++---------- .../cavitatingFoam/ras/throttle/system/fvSchemes | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/tutorials/mesh/moveDynamicMesh/SnakeRiverCanyon/Allrun b/tutorials/mesh/moveDynamicMesh/SnakeRiverCanyon/Allrun index 9988bf724..42b740016 100755 --- a/tutorials/mesh/moveDynamicMesh/SnakeRiverCanyon/Allrun +++ b/tutorials/mesh/moveDynamicMesh/SnakeRiverCanyon/Allrun @@ -2,16 +2,8 @@ # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Simple temporary bypass for Martin's laptop... -# Otherwise, this tutorial will generate junk for 10 whole minutes -# MB -# Oct 12, 2010 -# -if [ `hostname` == "pollux.local" ] -then - echo "This tutorial is not working on my Macbook Pro laptop. Need to get back later to this one. Martin Beaudoin, Oct 12 2010" - exit -1; -fi +echo "This tutorial fails in octree search: blame Mattijs Janssens (HJ). Martin Beaudoin, Oct 12 2010" +exit 0; # Get application name application=`getApplication` diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes index fc43eb63b..e57eda63d 100644 --- a/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes @@ -29,8 +29,8 @@ divSchemes default none; div(phiv,rho) Gauss limitedLinear 0.2; div(phi,U) Gauss limitedLinearV 0.2; - div(phiv,omega) Gauss limitedLinear 0.2; - div(phiv,k) Gauss limitedLinear 0.2; + div(phiv,omega) Gauss upwind; + div(phiv,k) Gauss upwind; } gradSchemes