Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenVolumeMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
1f2800ce
Commit
1f2800ce
authored
May 24, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid potential side effects in assert().
parent
c602ccf5
Pipeline
#10522
passed with stage
in 5 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
src/OpenVolumeMesh/Mesh/HexahedralMeshIterators.cc
src/OpenVolumeMesh/Mesh/HexahedralMeshIterators.cc
+4
-2
src/OpenVolumeMesh/Mesh/TetrahedralMeshIterators.cc
src/OpenVolumeMesh/Mesh/TetrahedralMeshIterators.cc
+5
-10
No files found.
src/OpenVolumeMesh/Mesh/HexahedralMeshIterators.cc
View file @
1f2800ce
...
...
@@ -235,10 +235,12 @@ HexVertexIter::HexVertexIter(const CellHandle& _ref_h,
BaseIter
(
_mesh
,
_ref_h
,
_max_laps
)
{
assert
(
_ref_h
.
is_valid
());
assert
(
_mesh
->
cell
(
_ref_h
).
halffaces
().
size
()
==
6
);
HexahedralMeshTopologyKernel
::
Cell
cell
=
_mesh
->
cell
(
_ref_h
);
assert
(
cell
.
halffaces
().
size
()
==
6
);
// Get first half-face
HalfFaceHandle
curHF
=
*
_mesh
->
cell
(
_ref_h
)
.
halffaces
().
begin
();
HalfFaceHandle
curHF
=
*
cell
.
halffaces
().
begin
();
assert
(
curHF
.
is_valid
());
// Get first half-edge
...
...
src/OpenVolumeMesh/Mesh/TetrahedralMeshIterators.cc
View file @
1f2800ce
...
...
@@ -32,14 +32,6 @@
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $Date$ *
* $LastChangedBy$ *
* *
\*===========================================================================*/
#include <set>
#include "TetrahedralMeshIterators.hh"
...
...
@@ -58,10 +50,13 @@ TetVertexIter::TetVertexIter(const CellHandle& _ref_h,
BaseIter
(
_mesh
,
_ref_h
,
_max_laps
)
{
assert
(
_ref_h
.
is_valid
());
assert
(
_mesh
->
cell
(
_ref_h
).
halffaces
().
size
()
==
4
);
TetrahedralMeshTopologyKernel
::
Cell
cell
=
_mesh
->
cell
(
_ref_h
);
assert
(
cell
.
halffaces
().
size
()
==
4
);
// Get first half-face
HalfFaceHandle
curHF
=
*
_mesh
->
cell
(
_ref_h
)
.
halffaces
().
begin
();
HalfFaceHandle
curHF
=
*
cell
.
halffaces
().
begin
();
assert
(
curHF
.
is_valid
());
// Get first half-edge
...
...
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