diff --git a/bin/tools/CleanFunctions b/bin/tools/CleanFunctions index 398052608e..341a3c68e3 100644 --- a/bin/tools/CleanFunctions +++ b/bin/tools/CleanFunctions @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | Website: https://openfoam.org -# \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -53,7 +53,7 @@ cleanCase() $d/cellProc* done - [ -d system ] && [ -d dynamicCode ] && rm -rf dynamicCode + [ -d dynamicCode ] && rm -rf dynamicCode rm -rf processor* rm -rf postProcessing diff --git a/src/OpenFOAM/primitives/strings/stringOps/stringOps.C b/src/OpenFOAM/primitives/strings/stringOps/stringOps.C index ff57c15eea..9a1f425d72 100644 --- a/src/OpenFOAM/primitives/strings/stringOps/stringOps.C +++ b/src/OpenFOAM/primitives/strings/stringOps/stringOps.C @@ -70,7 +70,7 @@ static inline int findParameterAlternative } -//- Get dictionary or (optionally) environment variable +// Get dictionary or (optionally) environment variable string getVariable ( const word& name, @@ -140,8 +140,8 @@ string getVariable } -//- Recursively expands dictionary or environment variable starting at index -// in string. Updates index. +// Recursively expands dictionary or environment variable starting at index +// in string. Updates index. string expand ( const string& s, @@ -176,7 +176,7 @@ string expand } -//- Expand path parts of a string +// Expand path parts of a string Foam::string& inplaceExpandPath(string& s) { if (!s.empty()) diff --git a/test/dictionary/Allclean b/test/dictionary/Allclean new file mode 100755 index 0000000000..be36bbd7b7 --- /dev/null +++ b/test/dictionary/Allclean @@ -0,0 +1,9 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanCase + +#------------------------------------------------------------------------------ diff --git a/test/dictionary/Allrun b/test/dictionary/Allrun index 9d97682223..f42bfe46bc 100755 --- a/test/dictionary/Allrun +++ b/test/dictionary/Allrun @@ -4,6 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication foamDictionary -expand testDict +runApplication -s testDict foamDictionary -expand testDict +runApplication -s testCalc foamDictionary -expand testCalc +runApplication -s simpleBlockMeshDict foamDictionary -expand simpleBlockMeshDict #------------------------------------------------------------------------------ diff --git a/test/dictionary/simpleBlockMeshDict b/test/dictionary/simpleBlockMeshDict new file mode 100644 index 0000000000..fce3171b48 --- /dev/null +++ b/test/dictionary/simpleBlockMeshDict @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object simpleBlockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +min (-2.5 -1.2 -3.0); // Minimum coordinates of the block +max (2.5 1.2 3.0); // Maximum coordinates of the block +nCellsByL 33.3333; // Number of cells per unit length + +// Calculate the number of cells in each block direction +nCells #calc #{ Vector