Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-istl
Commits
1c896311
Commit
1c896311
authored
5 months ago
by
Markus Blatt
Committed by
Simon Praetorius
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Get rid off unused-variable-warnings.
parent
9d1e346d
No related branches found
Branches containing commit
No related tags found
1 merge request
!579
Get rid off unused-variable-warnings.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/istl/io.hh
+12
-12
12 additions, 12 deletions
dune/istl/io.hh
dune/python/istl/bvector.hh
+1
-1
1 addition, 1 deletion
dune/python/istl/bvector.hh
dune/python/istl/preconditioners.hh
+2
-2
2 additions, 2 deletions
dune/python/istl/preconditioners.hh
with
15 additions
and
15 deletions
dune/istl/io.hh
+
12
−
12
View file @
1c896311
...
...
@@ -147,14 +147,14 @@ namespace Dune {
* #include <dune/istl/io.hh>
* \endcode
*/
template
<
class
K
>
template
<
class
K
,
std
::
enable_if_t
<
Dune
::
IsNumber
<
K
>
::
value
,
int
>
=
0
>
void
print_row
(
std
::
ostream
&
s
,
const
K
&
value
,
[[
maybe_unused
]]
typename
FieldMatrix
<
K
,
1
,
1
>::
size_type
I
,
[[
maybe_unused
]]
typename
FieldMatrix
<
K
,
1
,
1
>::
size_type
J
,
[[
maybe_unused
]]
typename
FieldMatrix
<
K
,
1
,
1
>::
size_type
therow
,
int
width
,
[[
maybe_unused
]]
int
precision
,
typename
std
::
enable_if_t
<
Dune
::
IsNumber
<
K
>::
value
>*
sfinae
=
nullptr
)
[[
maybe_unused
]]
int
precision
)
{
s
<<
" "
;
// space in front of each entry
s
.
width
(
width
);
// set width for each entry anew
...
...
@@ -168,11 +168,11 @@ namespace Dune {
* #include <dune/istl/io.hh>
* \endcode
*/
template
<
class
M
>
template
<
class
M
,
std
::
enable_if_t
<
not
Dune
::
IsNumber
<
M
>
::
value
,
int
>
=
0
>
void
print_row
(
std
::
ostream
&
s
,
const
M
&
A
,
typename
M
::
size_type
I
,
typename
M
::
size_type
J
,
typename
M
::
size_type
therow
,
int
width
,
int
precision
,
typename
std
::
enable_if_t
<!
Dune
::
IsNumber
<
M
>::
value
>*
sfinae
=
nullptr
)
int
width
,
int
precision
)
{
typename
M
::
size_type
i0
=
I
;
for
(
typename
M
::
size_type
i
=
0
;
i
<
A
.
N
();
i
++
)
...
...
@@ -407,11 +407,11 @@ namespace Dune {
*
* This specialization for numbers ends the recursion
*/
template
<
class
FieldType
>
template
<
class
FieldType
,
std
::
enable_if_t
<
Dune
::
IsNumber
<
FieldType
>
::
value
,
int
>
=
0
>
void
writeMatrixToMatlabHelper
(
const
FieldType
&
value
,
int
rowOffset
,
int
colOffset
,
std
::
ostream
&
s
,
typename
std
::
enable_if_t
<
Dune
::
IsNumber
<
FieldType
>::
value
>*
sfinae
=
nullptr
)
std
::
ostream
&
s
)
{
//+1 for Matlab numbering
s
<<
rowOffset
+
1
<<
" "
<<
colOffset
+
1
<<
" "
;
...
...
@@ -425,11 +425,11 @@ namespace Dune {
* #include <dune/istl/io.hh>
* \endcode
*/
template
<
class
MatrixType
>
template
<
class
MatrixType
,
std
::
enable_if_t
<
not
Dune
::
IsNumber
<
MatrixType
>
::
value
,
int
>
=
0
>
void
writeMatrixToMatlabHelper
(
const
MatrixType
&
matrix
,
int
externalRowOffset
,
int
externalColOffset
,
std
::
ostream
&
s
,
typename
std
::
enable_if_t
<!
Dune
::
IsNumber
<
MatrixType
>::
value
>*
sfinae
=
nullptr
)
std
::
ostream
&
s
)
{
// Precompute the accumulated sizes of the columns
std
::
vector
<
typename
MatrixType
::
size_type
>
colOffset
(
matrix
.
M
());
...
...
This diff is collapsed.
Click to expand it.
dune/python/istl/bvector.hh
+
1
−
1
View file @
1c896311
...
...
@@ -183,7 +183,7 @@ namespace Dune
//the generator actually takes the scope into account which is why we do nothing with it here
//so when doing a dune.istl blockvector it doesn't actually define any of the rest of the bindings
template
<
class
BlockVector
,
class
...
options
>
void
registerBlockVector
(
pybind11
::
handle
scope
,
pybind11
::
class_
<
BlockVector
,
options
...
>
cls
)
void
registerBlockVector
(
pybind11
::
handle
/*
scope
*/
,
pybind11
::
class_
<
BlockVector
,
options
...
>
cls
)
{
typedef
typename
BlockVector
::
size_type
size_type
;
using
pybind11
::
operator
""
_a
;
...
...
This diff is collapsed.
Click to expand it.
dune/python/istl/preconditioners.hh
+
2
−
2
View file @
1c896311
...
...
@@ -51,7 +51,7 @@ namespace Dune
// -----------------------
template
<
class
X
,
class
Y
,
class
...
options
>
inline
void
registerPreconditioners
(
pybind11
::
module
module
,
pybind11
::
class_
<
LinearOperator
<
X
,
Y
>
,
options
...
>
cls
)
inline
void
registerPreconditioners
(
pybind11
::
module
module
,
pybind11
::
class_
<
LinearOperator
<
X
,
Y
>
,
options
...
>
/*
cls
*/
)
{
typedef
Dune
::
Preconditioner
<
X
,
Y
>
Preconditioner
;
...
...
@@ -81,7 +81,7 @@ namespace Dune
}
template
<
class
M
,
class
X
,
class
Y
,
class
...
options
>
inline
void
registerMatrixPreconditioners
(
pybind11
::
module
module
,
pybind11
::
class_
<
LinearOperator
<
X
,
Y
>
,
options
...
>
cls
)
inline
void
registerMatrixPreconditioners
(
pybind11
::
module
module
,
pybind11
::
class_
<
LinearOperator
<
X
,
Y
>
,
options
...
>
/*
cls
*/
)
{
typedef
Dune
::
Preconditioner
<
X
,
Y
>
Preconditioner
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment