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
Merge requests
!497
[cleanup] Remove signed integer comparison warning.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[cleanup] Remove signed integer comparison warning.
cleanup/remove-warning-python
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Robert K
requested to merge
cleanup/remove-warning-python
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8d117323
1 commit,
2 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dune/python/istl/bvector.hh
+
2
−
1
Options
@@ -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
);
Loading