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
8d117323
Commit
8d117323
authored
2 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] Remove signed integer comparison warning.
parent
401f9582
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!497
[cleanup] Remove signed integer comparison warning.
Pipeline
#54460
passed
2 years ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/python/istl/bvector.hh
+2
-1
2 additions, 1 deletion
dune/python/istl/bvector.hh
with
2 additions
and
1 deletion
dune/python/istl/bvector.hh
+
2
−
1
View file @
8d117323
...
...
@@ -57,12 +57,13 @@ namespace Dune
inline
static
void
copy
(
pybind11
::
buffer
buffer
,
BlockVector
&
v
)
{
typedef
typename
BlockVector
::
field_type
field_type
;
typedef
typename
BlockVector
::
size_type
size_type
;
pybind11
::
buffer_info
info
=
buffer
.
request
();
if
(
info
.
format
!=
pybind11
::
format_descriptor
<
field_type
>::
format
()
)
throw
pybind11
::
value_error
(
"Incompatible buffer format."
);
if
(
info
.
ndim
!=
blockLevel
<
BlockVector
>
()
)
if
(
size_type
(
info
.
ndim
)
!=
blockLevel
<
BlockVector
>
()
)
throw
pybind11
::
value_error
(
"Block vectors can only be initialized from one-dimensional buffers."
);
copy
(
static_cast
<
const
char
*
>
(
info
.
ptr
),
info
.
shape
.
data
(),
info
.
strides
.
data
(),
v
);
...
...
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