Skip to content
Snippets Groups Projects
Commit 3d6d6df5 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: incorrect dimensions for surfaceTensionForce

- accidentally introduced by 27c62303

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);
parent 000f704e
Branches
Tags
No related merge requests found
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment