Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
cc116023
Commit
cc116023
authored
4 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing IO
parent
6b10922d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openfpm_io
+1
-1
1 addition, 1 deletion
openfpm_io
src/Grid/tests/grid_dist_id_HDF5_chckpnt_restart_test.cpp
+58
-0
58 additions, 0 deletions
src/Grid/tests/grid_dist_id_HDF5_chckpnt_restart_test.cpp
with
59 additions
and
1 deletion
openfpm_io
@
0357b11b
Subproject commit
c66d8ce6b84935972cc773ea457614bdb8707ea7
Subproject commit
0357b11b1c27cc519793659ddb22b3bbd16f14b3
This diff is collapsed.
Click to expand it.
src/Grid/tests/grid_dist_id_HDF5_chckpnt_restart_test.cpp
+
58
−
0
View file @
cc116023
...
...
@@ -145,6 +145,64 @@ BOOST_AUTO_TEST_CASE( grid_dist_id_hdf5_load_test )
}
BOOST_AUTO_TEST_CASE
(
grid_dist_id_hdf5_load_test_diff_proc
)
{
// Input data
size_t
k
=
200
;
float
ghost_part
=
0.0
;
// Domain
Box
<
2
,
float
>
domain
({
0.0
,
0.0
},{
1.0
,
1.0
});
Vcluster
<>
&
v_cl
=
create_vcluster
();
// Skip this test on big scale
if
(
v_cl
.
getProcessingUnits
()
>=
32
)
return
;
// grid size
size_t
sz
[
2
];
sz
[
0
]
=
k
;
sz
[
1
]
=
k
;
// Ghost
Ghost
<
2
,
float
>
g
(
3
);
// Distributed grid with id decomposition
grid_dist_id
<
2
,
float
,
aggregate
<
float
>>
g_dist
(
sz
,
domain
,
g
);
g_dist
.
load
(
"test_data/test_data_single.h5"
);
auto
it
=
g_dist
.
getDomainIterator
();
size_t
count
=
0
;
bool
match
=
true
;
while
(
it
.
isNext
())
{
//key
auto
key
=
it
.
get
();
//BOOST_CHECK_CLOSE(g_dist.template get<0>(key),1,0.0001);
//std::cout << "Element: " << g_dist.template get<0>(key) << std::endl;
auto
keyg
=
g_dist
.
getGKey
(
key
);
match
&=
g_dist
.
template
get
<
0
>(
key
)
==
keyg
.
get
(
0
);
++
it
;
count
++
;
}
v_cl
.
sum
(
count
);
v_cl
.
execute
();
BOOST_REQUIRE_EQUAL
(
count
,
(
size_t
)
k
*
k
);
BOOST_REQUIRE_EQUAL
(
match
,
true
);
}
BOOST_AUTO_TEST_CASE
(
grid_dist_id_hdf5_2GB_save_test
)
{
float
ghost_part
=
0.0
;
...
...
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