Skip to content
Snippets Groups Projects
Commit 294a3279 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fixes file open

parent c40c439d
No related branches found
No related tags found
1 merge request!39adding collision test to the pipeline
Pipeline #123394 passed
......@@ -290,7 +290,10 @@ class abstract_particle_set
this->sample(*field_to_sample, pdata.get());
hid_t file_id = -1;
if (field_to_sample->myrank == 0)
hid_t file_id = H5Fopen(file_name.c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
{
file_id = H5Fopen(file_name.c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
assert(file_id > 0);
}
hdf5_tools::gather_and_write_with_single_rank(
field_to_sample->myrank,
0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment