From ef4a575788c1996fec0c77b0161d7d4c1602c19e Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Fri, 11 Nov 2011 10:34:50 +0000 Subject: [PATCH] ENH: ops.H: added min,maxMagSqrOp --- src/OpenFOAM/primitives/ops/ops.H | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OpenFOAM/primitives/ops/ops.H b/src/OpenFOAM/primitives/ops/ops.H index edbd7057209..c68face927b 100644 --- a/src/OpenFOAM/primitives/ops/ops.H +++ b/src/OpenFOAM/primitives/ops/ops.H @@ -136,6 +136,8 @@ Op(cmptDivide, cmptDivide(x, y)) Op(stabilise, stabilise(x, y)) Op(max, max(x, y)) Op(min, min(x, y)) +Op(minMagSqr, (magSqr(x)<=magSqr(y) ? x : y)) +Op(maxMagSqr, (magSqr(x)>=magSqr(y) ? x : y)) Op(minMod, minMod(x, y)) Op(and, x && y) Op(or, x || y) -- GitLab