From 3d6d6df5664cfd9ef2ec22fd0b47777e294a2d26 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 10 Jan 2019 10:17:36 +0100 Subject: [PATCH] BUG: incorrect dimensions for surfaceTensionForce - accidentally introduced by 27c62303ad4b STYLE: trial use of brace-initialized dimensionSet - instead of writing dimensionedScalar(dimensionSet(1, -2, -2, 0, 0, 0), Zero); we can use C++11 brace-initialization to bundle the parameters for the dimensionSet construction and simply write dimensionedScalar({1, -2, -2, 0, 0, 0}, Zero); Note the following is incorrect syntax (extra brackets): dimensionedScalar(({1, -2, -2, 0, 0, 0}), Zero); --- .../phasesSystem/phaseSystem/phaseSystem.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/phasesSystem/phaseSystem/phaseSystem.C b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/phasesSystem/phaseSystem/phaseSystem.C index ea7aa28fd1..2ad16d941b 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/phasesSystem/phaseSystem/phaseSystem.C +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/phasesSystem/phaseSystem/phaseSystem.C @@ -929,7 +929,7 @@ Foam::phaseSystem::surfaceTensionForce() const mesh_ ), mesh_, - dimensionedScalar(dimForce, Zero) + dimensionedScalar({1, -2, -2, 0, 0, 0}, Zero) ); auto& stf = tstf.ref();