Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenFOAM-plus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
339
Issues
339
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Development
OpenFOAM-plus
Commits
4eef0795
Commit
4eef0795
authored
Jan 31, 2019
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: add bitwise and/or ops
parent
36492f48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/OpenFOAM/primitives/ops/ops.H
src/OpenFOAM/primitives/ops/ops.H
+7
-1
No files found.
src/OpenFOAM/primitives/ops/ops.H
View file @
4eef0795
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2018
-2019
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -78,8 +78,11 @@ EqOp(maxEq, x = max(x, y))
EqOp
(
minEq
,
x
=
min
(
x
,
y
))
EqOp
(
minMagSqrEq
,
x
=
(
magSqr
(
x
)
<=
magSqr
(
y
)
?
x
:
y
))
EqOp
(
maxMagSqrEq
,
x
=
(
magSqr
(
x
)
>=
magSqr
(
y
)
?
x
:
y
))
EqOp
(
andEq
,
x
=
(
x
&&
y
))
EqOp
(
orEq
,
x
=
(
x
||
y
))
EqOp
(
bitAndEq
,
x
=
(
x
&
y
))
EqOp
(
bitOrEq
,
x
=
(
x
|
y
))
EqOp
(
eqMinus
,
x
=
-
y
)
...
...
@@ -199,6 +202,9 @@ Op(minMagSqr, (magSqr(x)<=magSqr(y) ? x : y))
Op
(
maxMagSqr
,
(
magSqr
(
x
)
>=
magSqr
(
y
)
?
x
:
y
))
Op
(
minMod
,
minMod
(
x
,
y
))
Op
(
bitOr
,
(
x
|
y
))
Op
(
bitAnd
,
(
x
&
y
))
BoolOp
(
and
,
x
&&
y
)
BoolOp
(
or
,
x
||
y
)
BoolOp
(
equal
,
x
==
y
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment