Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
3f60b19d
Commit
3f60b19d
authored
Dec 16, 2010
by
mattijs
Browse files
STYLE: createPatch.C : use built-in ops
parent
2d43d949
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/createPatch/createPatch.C
View file @
3f60b19d
...
...
@@ -55,23 +55,6 @@ namespace Foam
defineTemplateTypeNameAndDebug
(
IOPtrList
<
dictionary
>
,
0
);
}
// Combine operator to synchronise points. We choose point nearest to origin so
// we can use e.g. great,great,great as null value.
class
nearestEqOp
{
public:
void
operator
()(
vector
&
x
,
const
vector
&
y
)
const
{
if
(
magSqr
(
y
)
<
magSqr
(
x
))
{
x
=
y
;
}
}
};
void
changePatchID
(
const
polyMesh
&
mesh
,
...
...
@@ -854,7 +837,7 @@ int main(int argc, char *argv[])
(
mesh
,
newPoints
,
nearestEqOp
(),
minMagSqrEqOp
<
vector
>
(),
point
(
GREAT
,
GREAT
,
GREAT
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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