Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_ParticleUtilHDF5.H
Go to the documentation of this file.
1#ifdef AMREX_USE_HDF5_ASYNC
2#include "hdf5.h"
3
4namespace amrex {
5
13hid_t es_par_g = 0;
14
18void async_vol_es_wait_particle()
19{
20 size_t num_in_progress;
21 hbool_t op_failed;
22 if (es_par_g != 0) {
23 H5ESwait(es_par_g, H5ES_WAIT_FOREVER, &num_in_progress, &op_failed);
24 if (num_in_progress != 0)
25 std::cout << "After H5ESwait, still has async operations in progress!" << std::endl;
26 }
27 return;
28}
29
33void async_vol_es_wait_close_particle()
34{
35 size_t num_in_progress;
36 hbool_t op_failed;
37 if (es_par_g != 0) {
38 H5ESwait(es_par_g, H5ES_WAIT_FOREVER, &num_in_progress, &op_failed);
39 if (num_in_progress != 0)
40 std::cout << "After H5ESwait, still has async operations in progress!" << std::endl;
41 H5ESclose(es_par_g);
42 /* std::cout << "es_par_g closed!" << std::endl; */
43 es_par_g = 0;
44 }
45 return;
46}
47
48}
49
50#endif
Definition AMReX_Amr.cpp:49