Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1d4fdf1b
Commit
1d4fdf1b
authored
Apr 12, 2011
by
Mark Olesen
Browse files
STYLE: return type on triFace::area
parent
9153534a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/meshShapes/triFace/triFace.H
View file @
1d4fdf1b
...
...
@@ -115,7 +115,7 @@ public:
inline
point
centre
(
const
pointField
&
)
const
;
//- Area, optionally return centre point as well
inline
point
area
inline
vector
area
(
const
pointField
&
,
point
&
centrePt
=
*
reinterpret_cast
<
point
*>
(
0
)
...
...
src/OpenFOAM/meshes/meshShapes/triFace/triFaceI.H
View file @
1d4fdf1b
...
...
@@ -171,7 +171,7 @@ inline Foam::point Foam::triFace::centre(const pointField& points) const
}
inline
Foam
::
point
Foam
::
triFace
::
area
inline
Foam
::
vector
Foam
::
triFace
::
area
(
const
pointField
&
points
,
point
&
centrePt
...
...
@@ -183,15 +183,7 @@ inline Foam::point Foam::triFace::area
centrePt
=
this
->
centre
(
points
);
}
return
(
0
.
5
*
(
(
points
[
operator
[](
1
)]
-
points
[
operator
[](
0
)])
^
(
points
[
operator
[](
2
)]
-
points
[
operator
[](
0
)])
)
);
return
this
->
normal
(
points
);
}
...
...
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