Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kate Kader
Open VDS
Commits
d390d034
Commit
d390d034
authored
Nov 19, 2019
by
Jørgen Lind
Browse files
Test fixups
parent
d838be7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/OpenVDS/RequestVolumeSamples.cpp
View file @
d390d034
...
...
@@ -31,7 +31,7 @@ static inline void GenerateRandomPosition(std::mt19937 &gen, std::vector<std::un
{
for
(
int
i
=
0
;
i
<
dimension
;
i
++
)
{
pos
[
i
]
=
dimensionDistribution
[
i
](
gen
);
pos
[
i
]
=
dimensionDistribution
[
size_t
(
i
)
](
gen
);
}
}
GTEST_TEST
(
OpenVDS_integration
,
SimpleRequestVolumeSamples
)
...
...
@@ -76,7 +76,7 @@ GTEST_TEST(OpenVDS_integration, SimpleRequestVolumeSamples)
GenerateRandomPosition
(
gen
,
dimensionDistribution
,
dimension
,
positions
[
i
]);
}
float
buffer
[
100
];
int
request
=
dataAccessManager
->
RequestVolumeSamples
(
buffer
,
layout
,
OpenVDS
::
Dimensions_012
,
0
,
0
,
positions
,
100
,
OpenVDS
::
InterpolationMethod
::
Linear
);
int
64_t
request
=
dataAccessManager
->
RequestVolumeSamples
(
buffer
,
layout
,
OpenVDS
::
Dimensions_012
,
0
,
0
,
positions
,
100
,
OpenVDS
::
InterpolationMethod
::
Linear
);
dataAccessManager
->
WaitForCompletion
(
request
);
OpenVDS
::
VolumeDataPageAccessor
*
pageAccessor
=
dataAccessManager
->
CreateVolumeDataPageAccessor
(
layout
,
OpenVDS
::
Dimensions_012
,
0
,
0
,
100
,
OpenVDS
::
VolumeDataAccessManager
::
AccessMode_ReadOnly
);
...
...
Write
Preview
Markdown
is supported
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