From 026ed13c1008d011b33e34f192d50d51700a1907 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 29 Nov 2016 12:14:48 +0100 Subject: [PATCH] ENH: warn user when using constant/polyMesh/blockMeshDict (issue #309) - the user might otherwise be unaware of the changed location --- .../utilities/mesh/generation/blockMesh/blockMesh.C | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/applications/utilities/mesh/generation/blockMesh/blockMesh.C b/applications/utilities/mesh/generation/blockMesh/blockMesh.C index 4441f15e49..d48980cb8c 100644 --- a/applications/utilities/mesh/generation/blockMesh/blockMesh.C +++ b/applications/utilities/mesh/generation/blockMesh/blockMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -148,6 +148,15 @@ int main(int argc, char *argv[]) dictPath = runTime.constant() /regionPath/polyMesh::meshSubDir/dictName; + + // Warn that constant/polyMesh/blockMesh was selected instead of + // system/blockMesh + WarningIn(args[0]) + << "Using the old blockMeshDict location: " + << dictPath << nl + << " instead of the default location: " + << runTime.system()/regionPath/dictName << nl + << endl; } // Otherwise assume the dictionary is present in the system directory else