Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
a04d7d9f
Commit
a04d7d9f
authored
Aug 18, 2020
by
Praetorius, Simon
Browse files
remove some unused_variable and integer comparison warnings
parent
fa603413
Changes
2
Hide whitespace changes
Inline
Side-by-side
dune/vtk/gridcreators/lagrangegridcreator.hh
View file @
a04d7d9f
...
@@ -117,7 +117,7 @@ namespace Dune
...
@@ -117,7 +117,7 @@ namespace Dune
if
(
!
cellType
.
noPermutation
())
{
if
(
!
cellType
.
noPermutation
())
{
// apply index permutation
// apply index permutation
std
::
vector
<
unsigned
int
>
cell
(
element
.
size
());
std
::
vector
<
unsigned
int
>
cell
(
element
.
size
());
for
(
in
t
j
=
0
;
j
<
element
.
size
();
++
j
)
for
(
std
::
size_
t
j
=
0
;
j
<
element
.
size
();
++
j
)
cell
[
j
]
=
element
[
cellType
.
permutation
(
j
)];
cell
[
j
]
=
element
[
cellType
.
permutation
(
j
)];
std
::
swap
(
element
,
cell
);
std
::
swap
(
element
,
cell
);
}
}
...
...
dune/vtk/vtkreader.impl.hh
View file @
a04d7d9f
...
@@ -397,12 +397,6 @@ VtkReader<Grid,Creator>::readCells (std::ifstream& input, std::string name)
...
@@ -397,12 +397,6 @@ VtkReader<Grid,Creator>::readCells (std::ifstream& input, std::string name)
sec
=
readDataArray
(
input
,
vec_offsets
,
numberOfCells_
,
CELLS_DATA_ARRAY
,
CELLS
);
sec
=
readDataArray
(
input
,
vec_offsets
,
numberOfCells_
,
CELLS_DATA_ARRAY
,
CELLS
);
assert
(
vec_offsets
.
size
()
==
numberOfCells_
);
assert
(
vec_offsets
.
size
()
==
numberOfCells_
);
}
else
if
(
name
==
"connectivity"
)
{
}
else
if
(
name
==
"connectivity"
)
{
std
::
size_t
max_size
=
0
;
int
max_vertices
=
(
Grid
::
dimension
==
1
?
2
:
Grid
::
dimension
==
2
?
4
:
8
);
if
(
!
vec_offsets
.
empty
())
max_size
=
vec_offsets
.
back
();
else
max_size
=
numberOfCells_
*
max_vertices
;
sec
=
readDataArray
(
input
,
vec_connectivity
,
std
::
size_t
(
-
1
),
CELLS_DATA_ARRAY
,
CELLS
);
sec
=
readDataArray
(
input
,
vec_connectivity
,
std
::
size_t
(
-
1
),
CELLS_DATA_ARRAY
,
CELLS
);
}
else
if
(
name
==
"global_point_ids"
)
{
}
else
if
(
name
==
"global_point_ids"
)
{
sec
=
readDataArray
(
input
,
vec_point_ids
,
numberOfPoints_
,
CELLS_DATA_ARRAY
,
CELLS
);
sec
=
readDataArray
(
input
,
vec_point_ids
,
numberOfPoints_
,
CELLS_DATA_ARRAY
,
CELLS
);
...
...
Write
Preview
Supports
Markdown
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