diff --git a/doc/Build.md b/doc/Build.md index 490a3c6c94..6c201777eb 100644 --- a/doc/Build.md +++ b/doc/Build.md @@ -1,23 +1,23 @@ ## Getting the code -Links to all code packs are available on https://dl.openfoam.com. For OpenFOAM-v2212: +Links to all code packs are available on https://dl.openfoam.com. For OpenFOAM-v2306: - https://dl.openfoam.com/source/latest/ -- Source: https://dl.openfoam.com/source/v2212/OpenFOAM-v2212.tgz -- ThirdParty: https://dl.openfoam.com/source/v2212/ThirdParty-v2212.tgz +- Source: https://dl.openfoam.com/source/v2306/OpenFOAM-v2306.tgz +- ThirdParty: https://dl.openfoam.com/source/v2306/ThirdParty-v2306.tgz ## OpenFOAM® Quick Build Guide Prior to building, ensure that the [system requirements][link openfoam-require] are satisfied (including any special [cross-compiling][wiki-cross-compile] considerations), and source the correct OpenFOAM environment. -For example, for the OpenFOAM-v2212 version: +For example, for the OpenFOAM-v2306 version: ``` -source /OpenFOAM-v2212/etc/bashrc +source /OpenFOAM-v2306/etc/bashrc ``` e.g. if installed under the `~/openfoam` directory ``` -source ~/openfoam/OpenFOAM-v2212/etc/bashrc +source ~/openfoam/OpenFOAM-v2306/etc/bashrc ``` @@ -157,4 +157,4 @@ More details in the [ThirdParty build guide][link third-build]. [wiki-config]: https://develop.openfoam.com/Development/openfoam/-/wikis/configuring --- -Copyright 2019-2022 OpenCFD Ltd +Copyright 2019-2023 OpenCFD Ltd diff --git a/etc/bashrc b/etc/bashrc index 9151a94faf..77175bf41e 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -55,7 +55,7 @@ # [WM_PROJECT_VERSION] - A human-readable version name # A development version is often named 'com' - as in www.openfoam.com -export WM_PROJECT_VERSION=com +export WM_PROJECT_VERSION=v2306 #------------------------------------------------------------------------------ # Configuration environment variables. diff --git a/etc/cshrc b/etc/cshrc index 079505d3dd..d8d5137981 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -55,7 +55,7 @@ # [WM_PROJECT_VERSION] - A human-readable version name # A development version is often named 'com' - as in www.openfoam.com -setenv WM_PROJECT_VERSION com +setenv WM_PROJECT_VERSION v2306 #------------------------------------------------------------------------------ # Configuration environment variables. diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C index 59cc22beba..16a406fa7a 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C @@ -96,7 +96,7 @@ Foam::ConeInjection::ConeInjection this->coeffDict().subDict("sizeDistribution"), owner.rndGen() ) ), - nInjected_(this->parcelsAddedTotal()), + nInjected_(Pstream::master() ? this->parcelsAddedTotal() : 0), injectorOrder_(identity(positionAxis_.size())), tanVec1_(), tanVec2_() @@ -233,7 +233,7 @@ Foam::label Foam::ConeInjection::parcelsToInject const label targetParcels = ceil(positionAxis_.size()*parcelsPerInjector_*volumeFraction); - return targetParcels - nInjected_; + return targetParcels - returnReduce(nInjected_, sumOp