From a2140d21f2ebff5bde56505c67dbaf06c94476a1 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 5 Mar 2015 17:20:34 +0000 Subject: [PATCH] patchInjectionBase: ensure areaFraction is the same on all processors Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1556 --- .../PatchInjection/patchInjectionBase.C | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/patchInjectionBase.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/patchInjectionBase.C index 0d1700b5d..eef73729c 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/patchInjectionBase.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/patchInjectionBase.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,14 +51,14 @@ Foam::patchInjectionBase::patchInjectionBase { FatalErrorIn ( - "Foam::patchInjectionBase::patchInjectionBase" + "patchInjectionBase::patchInjectionBase" "(" - "const polyMesh&, " - "const word&" + "const polyMesh& mesh, " + "const word& patchName" ")" ) << "Requested patch " << patchName_ << " not found" << nl - << "Available patches are: " << mesh.boundaryMesh().names() - << nl << exit(FatalError); + << "Available patches are: " << mesh.boundaryMesh().names() << nl + << exit(FatalError); } updateMesh(mesh); @@ -95,13 +95,13 @@ void Foam::patchInjectionBase::updateMesh(const polyMesh& mesh) cellOwners_ = patch.faceCells(); - // triangulate the patch faces and create addressing + // Triangulate the patch faces and create addressing DynamicList