diff --git a/tutorials/IO/fileHandler/Allclean b/tutorials/IO/fileHandler/Allclean index f0f0c0c84cf6f04c3b8469f2caef599773bbd694..611ad150b1426de14a852127e4ff11a3665c0efa 100755 --- a/tutorials/IO/fileHandler/Allclean +++ b/tutorials/IO/fileHandler/Allclean @@ -5,7 +5,7 @@ cd "${0%/*}" || exit # Run from this directory cleanCase0 -rm -rf machineA -rm -rf machineB +rm -rf machine* +rm -rf test-* #------------------------------------------------------------------------------ diff --git a/tutorials/IO/fileHandler/Allrun-redistribute b/tutorials/IO/fileHandler/Allrun-redistribute new file mode 100755 index 0000000000000000000000000000000000000000..1eac6a371f672bc7fcdf16f6b186c4b323e58a5c --- /dev/null +++ b/tutorials/IO/fileHandler/Allrun-redistribute @@ -0,0 +1,53 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +if isTest "$@" +then + # Reset the controlDict + if [ -f system/controlDict.orig ] + then + echo "$0: restoring the controlDict from controlDict.orig" + mv -f system/controlDict.orig system/controlDict + fi +fi + +restore0Dir +runApplication blockMesh + +rm -rf test-distribute +masterDecompParDict="test-distribute/machineA/testcase/system/decomposeParDict" + +for subdir in machineA machineB machineC machineD +do + mkdir -p test-distribute/"$subdir"/testcase +done + +# master +cp -R 0 constant system test-distribute/machineA/testcase +# others (nothing to copy) + + +cat<< CASE_ROOTS >> "$masterDecompParDict" + +distributed true; + +roots +( + //master: "$PWD/test-distribute/machineA" + "$PWD/test-distribute/machineB" + "$PWD/test-distribute/machineC" + "$PWD/test-distribute/machineD" +); +CASE_ROOTS + +#export FOAM_ABORT=true + +runParallel redistributePar -decompose -case test-distribute/machineA/testcase + +runParallel checkMesh -case test-distribute/machineA/testcase + +exit 0 + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOmultiFieldValue b/tutorials/incompressible/pisoFoam/RAS/cavity/system/FOs/FOmultiFieldValue similarity index 100% rename from tutorials/incompressible/pisoFoam/RAS/cavity/system/FOmultiFieldValue rename to tutorials/incompressible/pisoFoam/RAS/cavity/system/FOs/FOmultiFieldValue diff --git a/tutorials/incompressible/pisoFoam/RAS/cavity/system/controlDict b/tutorials/incompressible/pisoFoam/RAS/cavity/system/controlDict index e340791b2cd36fce07b7ba66e5096a44b6cdc514..1f0c2eccfde6d241473b6fedc71ff94d84d7af98 100644 --- a/tutorials/incompressible/pisoFoam/RAS/cavity/system/controlDict +++ b/tutorials/incompressible/pisoFoam/RAS/cavity/system/controlDict @@ -68,6 +68,7 @@ functions #include "FOs/FOlog" #include "FOs/FOmag" #include "FOs/FOmagSqr" + #include "FOs/FOmultiFieldValue" #include "FOs/FOmultiply" #include "FOs/FOmomentum" #include "FOs/FOnearWallFields" diff --git a/tutorials/mesh/extrudeMesh/faceZoneExtrusion/system/topoSetDict b/tutorials/mesh/extrudeMesh/faceZoneExtrusion/system/topoSetDict index 3298e756df474ad2613c68cf61e4efa884eff16a..02354e6d8acae9a6295817ded7e0e6e283488034 100644 --- a/tutorials/mesh/extrudeMesh/faceZoneExtrusion/system/topoSetDict +++ b/tutorials/mesh/extrudeMesh/faceZoneExtrusion/system/topoSetDict @@ -27,7 +27,7 @@ actions { name f0; type faceSet; - action delete; + action subtract; source boundaryToFace; } diff --git a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/topoSetDict b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/topoSetDict index 6915c79242b455c193a0176b0b9d5dece3bec7e8..58325d9c8fa65ad341a9359b95d490a2657df5f0 100644 --- a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/topoSetDict +++ b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/topoSetDict @@ -53,7 +53,7 @@ actions { name c1; type cellSet; - action delete; + action subtract; source cellToCell; set c2;