![]() |
QMCPACK
|
Collaboration diagram for HDFWalkerInput_0_4:Classes | |
| struct | IOInfo |
Public Member Functions | |
| HDFWalkerInput_0_4 (WalkerConfigurations &wc_list, size_t num_ptcls, Communicate *c, const HDFVersion &v) | |
| constructor More... | |
| ~HDFWalkerInput_0_4 () | |
| bool | put (xmlNodePtr cur) |
| read walkers More... | |
| void | checkOptions (xmlNodePtr cur) |
| check options from xml More... | |
| bool | read_hdf5 (const std::filesystem::path &h5name) |
| read walkers for small number of MPI tasks More... | |
| bool | read_hdf5_scatter (const std::filesystem::path &h5name) |
| read walkers. More... | |
| bool | read_phdf5 (const std::filesystem::path &h5name) |
| read walkers using PHDF5 More... | |
Public Attributes | |
| WalkerConfigurations & | wc_list_ |
| reference to the list of walker configurations to be read from file More... | |
| const size_t | num_ptcls_ |
| number of particles More... | |
| Communicate * | myComm |
| HDFVersion | cur_version |
| IOInfo | i_info |
| hid_t | h_plist |
| std::filesystem::path | FileName_noext |
| std::stack< std::filesystem::path > | FileStack |
Definition at line 28 of file HDFWalkerInput_0_4.h.
| HDFWalkerInput_0_4 | ( | WalkerConfigurations & | wc_list, |
| size_t | num_ptcls, | ||
| Communicate * | c, | ||
| const HDFVersion & | v | ||
| ) |
constructor
| wc_list | target walker configurations |
| num_ptcls | the number of particles in each walker |
| c | communicator |
| v | version |
Definition at line 26 of file HDFWalkerInput_0_4.cpp.
References HDFWalkerInput_0_4::i_info, and HDFWalkerInput_0_4::IOInfo::version.
| ~HDFWalkerInput_0_4 | ( | ) |
Definition at line 35 of file HDFWalkerInput_0_4.cpp.
| void checkOptions | ( | xmlNodePtr | cur | ) |
check options from xml
Definition at line 40 of file HDFWalkerInput_0_4.cpp.
References OhmmsAttributeSet::add(), HDFWalkerInput_0_4::IOInfo::collected, qmcplusplus::hdf::config_ext, HDFWalkerInput_0_4::FileStack, HDFWalkerInput_0_4::i_info, HDFWalkerInput_0_4::myComm, HDFWalkerInput_0_4::IOInfo::nprocs, OhmmsAttributeSet::put(), HDFWalkerInput_0_4::IOInfo::rank, Communicate::rank(), HDFWalkerInput_0_4::IOInfo::reset(), and Communicate::size().
Referenced by HDFWalkerInput_0_4::put().
| bool put | ( | xmlNodePtr | cur | ) |
read walkers
| W | walker set to which new walkers will be added |
| rollback | number of blocks to read |
Definition at line 102 of file HDFWalkerInput_0_4.cpp.
References qmcplusplus::app_error(), HDFWalkerInput_0_4::checkOptions(), qmcplusplus::hdf::config_ext, HDFWalkerInput_0_4::FileName_noext, HDFWalkerInput_0_4::FileStack, HDFWalkerInput_0_4::read_hdf5(), and HDFWalkerInput_0_4::read_phdf5().
Referenced by HDFWalkerInputManager::put().
| bool read_hdf5 | ( | const std::filesystem::path & | h5name | ) |
read walkers for small number of MPI tasks
Definition at line 126 of file HDFWalkerInput_0_4.cpp.
References qmcplusplus::app_error(), qmcplusplus::app_log(), copy(), WalkerConfigurations::createWalkers(), qmcplusplus::dims, FairDivideLow(), qmcplusplus::get_first_address(), WalkerConfigurations::getActiveWalkers(), HDFWalkerInput_0_4::i_info, hdf_archive::is_group(), qmcplusplus::hdf::main_state, HDFWalkerInput_0_4::myComm, HDFWalkerInput_0_4::num_ptcls_, qmcplusplus::hdf::num_walkers, OHMMS_DIM, hdf_archive::open(), hdf_archive::push(), Communicate::rank(), hdf_archive::read(), hdf_archive::readEntry(), hdf_archive::readSlabReshaped(), Communicate::size(), qmcplusplus::hdf::version, HDFWalkerInput_0_4::IOInfo::version, qmcplusplus::hdf::walker_weights, qmcplusplus::hdf::walkers, and HDFWalkerInput_0_4::wc_list_.
Referenced by HDFWalkerInput_0_4::put(), and qmcplusplus::TEST_CASE().
| bool read_hdf5_scatter | ( | const std::filesystem::path & | h5name | ) |
read walkers.
Master reads and scatter the walkers
Definition at line 191 of file HDFWalkerInput_0_4.cpp.
References qmcplusplus::app_error(), Communicate::barrier(), qmcplusplus::bcast(), copy(), WalkerConfigurations::createWalkers(), qmcplusplus::dims, FairDivideLow(), qmcplusplus::get_first_address(), WalkerConfigurations::getActiveWalkers(), HDFWalkerInput_0_4::i_info, hdf_archive::is_group(), qmcplusplus::hdf::main_state, HDFWalkerInput_0_4::myComm, HDFWalkerInput_0_4::num_ptcls_, qmcplusplus::hdf::num_walkers, OHMMS_DIM, hdf_archive::open(), hdf_archive::push(), Communicate::rank(), hdf_archive::read(), hdf_archive::readEntry(), hdf_archive::readSlabReshaped(), Communicate::size(), qmcplusplus::hdf::version, HDFWalkerInput_0_4::IOInfo::version, qmcplusplus::hdf::walker_weights, qmcplusplus::hdf::walkers, and HDFWalkerInput_0_4::wc_list_.
| bool read_phdf5 | ( | const std::filesystem::path & | h5name | ) |
read walkers using PHDF5
Definition at line 277 of file HDFWalkerInput_0_4.cpp.
References qmcplusplus::app_error(), qmcplusplus::app_log(), qmcplusplus::bcast(), copy(), WalkerConfigurations::createWalkers(), qmcplusplus::dims, FairDivideLow(), qmcplusplus::get_first_address(), WalkerConfigurations::getActiveWalkers(), HDFWalkerInput_0_4::i_info, hdf_archive::is_group(), qmcplusplus::hdf::main_state, HDFWalkerInput_0_4::myComm, HDFWalkerInput_0_4::num_ptcls_, qmcplusplus::hdf::num_walkers, OHMMS_DIM, hdf_archive::open(), hdf_archive::push(), Communicate::rank(), hdf_archive::read(), hdf_archive::readEntry(), Communicate::size(), qmcplusplus::hdf::version, HDFWalkerInput_0_4::IOInfo::version, qmcplusplus::hdf::walker_weights, qmcplusplus::hdf::walkers, and HDFWalkerInput_0_4::wc_list_.
Referenced by HDFWalkerInput_0_4::put().
| HDFVersion cur_version |
Definition at line 55 of file HDFWalkerInput_0_4.h.
| std::filesystem::path FileName_noext |
Definition at line 61 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInputManager::put(), and HDFWalkerInput_0_4::put().
| std::stack<std::filesystem::path> FileStack |
Definition at line 63 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInput_0_4::checkOptions(), and HDFWalkerInput_0_4::put().
| hid_t h_plist |
Definition at line 59 of file HDFWalkerInput_0_4.h.
| IOInfo i_info |
Definition at line 57 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInput_0_4::checkOptions(), HDFWalkerInput_0_4::HDFWalkerInput_0_4(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), and HDFWalkerInput_0_4::read_phdf5().
| Communicate* myComm |
Definition at line 53 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInput_0_4::checkOptions(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), and HDFWalkerInput_0_4::read_phdf5().
| const size_t num_ptcls_ |
number of particles
Definition at line 51 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), and HDFWalkerInput_0_4::read_phdf5().
| WalkerConfigurations& wc_list_ |
reference to the list of walker configurations to be read from file
Definition at line 49 of file HDFWalkerInput_0_4.h.
Referenced by HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), and HDFWalkerInput_0_4::read_phdf5().