Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-fufem
Commits
fed0ee30
Commit
fed0ee30
authored
3 years ago
by
lh1887
Browse files
Options
Downloads
Patches
Plain Diff
Allow std::vector as target for HDF5 reader
parent
f8f4356a
Branches
Branches containing commit
No related tags found
1 merge request
!102
Allow std::vector as target for HDF5 reader
Pipeline
#40748
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/hdf5/frombuffer.hh
+8
-0
8 additions, 0 deletions
dune/fufem/hdf5/frombuffer.hh
with
8 additions
and
0 deletions
dune/fufem/hdf5/frombuffer.hh
+
8
−
0
View file @
fed0ee30
...
@@ -54,6 +54,14 @@ void fromBuffer(std::vector<ctype> const &buffer, std::array<T, 1> dimensions,
...
@@ -54,6 +54,14 @@ void fromBuffer(std::vector<ctype> const &buffer, std::array<T, 1> dimensions,
localVector
[
0
]
=
*
(
it
++
);
localVector
[
0
]
=
*
(
it
++
);
}
}
template
<
typename
ctype
,
typename
T
>
void
fromBuffer
(
std
::
vector
<
ctype
>
const
&
buffer
,
std
::
array
<
T
,
1
>
dimensions
,
std
::
vector
<
ctype
>
&
data
)
{
assert
(
buffer
.
size
()
==
dimensions
[
0
]);
data
=
buffer
;
}
template
<
typename
ctype
,
typename
T
>
template
<
typename
ctype
,
typename
T
>
void
fromBuffer
(
std
::
vector
<
ctype
>
const
&
buffer
,
std
::
array
<
T
,
0
>
dimensions
,
void
fromBuffer
(
std
::
vector
<
ctype
>
const
&
buffer
,
std
::
array
<
T
,
0
>
dimensions
,
ctype
&
data
)
{
ctype
&
data
)
{
...
...
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