![]() |
QMCPACK
|
class to handle hdf file More...
Public Member Functions | |
template<class Comm = Communicate*> | |
hdf_archive (Comm c, bool request_pio=false) | |
constructor More... | |
hdf_archive () | |
~hdf_archive () | |
destructor More... | |
bool | is_parallel () const |
return true if parallel i/o More... | |
bool | is_master () const |
return true if master in parallel i/o More... | |
hid_t | getFileID () const |
return file_id. should be only be used for connecting to old codes when porting More... | |
bool | create (const std::filesystem::path &fname, unsigned flags=H5F_ACC_TRUNC) |
create a file More... | |
bool | open (const std::filesystem::path &fname, unsigned flags=H5F_ACC_RDWR) |
open a file More... | |
void | close () |
close all the open groups and file More... | |
void | flush () |
flush a file More... | |
bool | closed () |
return true if the file is closed More... | |
bool | is_group (const std::string &aname) |
check if aname is a group More... | |
bool | is_dataset (const std::string &aname) |
check if aname is a dataset More... | |
template<typename T > | |
bool | is_dataset_of_type (const std::string &aname) |
check if aname is a dataset of type T More... | |
hid_t | top () const |
return the top of the group stack More... | |
bool | open_groups () |
check if any groups are open group stack will have entries if so More... | |
void | push (const std::string &gname, bool createit=true) |
push a group to the group stack More... | |
void | push (const hdf_path &gname, bool createit=true) |
void | pop () |
std::string | group_path_as_string () const |
Return a string representation of the current group stack. More... | |
template<typename T > | |
bool | getShape (const std::string &aname, std::vector< int > &sizes_out) |
read the shape of multidimensional filespace from the group aname this function can be used to query dataset for preparing containers. More... | |
template<typename T > | |
bool | writeEntry (T &data, const std::string &aname) |
write the data to the group aname and return status use write() for inbuilt error checking More... | |
template<typename T > | |
void | write (T &data, const std::string &aname) |
write the data to the group aname and check status runtime error is issued on I/O error More... | |
template<typename T , typename IT , std::size_t RANK> | |
void | writeSlabReshaped (T &data, const std::array< IT, RANK > &shape, const std::string &aname) |
write the container data with a specific shape and check status More... | |
template<typename T , typename = std::enable_if_t<!std::is_const<T>::value>> | |
bool | readEntry (T &data, const std::string &aname) |
read the data from the group aname and return status use read() for inbuilt error checking More... | |
template<typename T , typename = std::enable_if_t<!std::is_const<T>::value>> | |
void | read (T &data, const std::string &aname) |
read the data from the group aname and check status runtime error is issued on I/O error More... | |
template<typename T , typename IT , std::size_t RANK, typename = std::enable_if_t<!std::is_const<T>::value>> | |
void | readSlabReshaped (T &data, const std::array< IT, RANK > &shape, const std::string &aname) |
read file dataset with a specific shape into a container and check status More... | |
template<typename T , typename IT , std::size_t RANK, typename = std::enable_if_t<!std::is_const<T>::value>> | |
void | readSlabSelection (T &data, const std::array< IT, RANK > &readSpec, const std::string &aname) |
read a portion of the data from the group aname and check status runtime error is issued on I/O error More... | |
void | unlink (const std::string &aname) |
Private Types | |
enum | { IS_PARALLEL = 0, IS_MASTER, NOIO } |
Private Member Functions | |
void | set_access_plist (Communicate *comm, bool request_pio) |
set the access property More... | |
void | set_access_plist () |
Private Attributes | |
std::bitset< 4 > | Mode |
bitset of the io mode Mode[IS_PARALLEL] : true, if parallel Mode[IS_MASTER] : true, if the node is master Mode[NOIO] : true, if I/O is not performed More... | |
hid_t | file_id |
file id More... | |
hid_t | access_id |
access id More... | |
hid_t | xfer_plist |
transfer property More... | |
hid_t | lcpl_id |
Link creation property list identifier. More... | |
std::stack< hid_t > | group_id |
FILO to handle H5Group. More... | |
std::vector< std::string > | group_names |
Track group names corresponding to group_id. More... | |
std::string | possible_filename_ |
Name of file that hdf_archive thinks is open. More... | |
Static Private Attributes | |
static const hid_t | is_closed = -1 |
class to handle hdf file
Definition at line 51 of file hdf_archive.h.
|
private |
Enumerator | |
---|---|
IS_PARALLEL | |
IS_MASTER | |
NOIO |
Definition at line 54 of file hdf_archive.h.
|
inline |
constructor
c | communicator |
request_pio | turns on parallel I/O, if true and PHDF5 is available, hdf_archive is in parallel collective IO mode if true and PHDF5 is not available, hdf_archive is in master-only IO mode if false, hdf_archive is in independent IO mode |
Definition at line 102 of file hdf_archive.h.
References hdf_error_suppression::enabled, and hdf_archive::set_access_plist().
|
inline |
Definition at line 110 of file hdf_archive.h.
References hdf_error_suppression::enabled, and hdf_archive::set_access_plist().
~hdf_archive | ( | ) |
destructor
Definition at line 25 of file hdf_archive.cpp.
References hdf_archive::access_id, hdf_archive::close(), hdf_archive::lcpl_id, and hdf_archive::xfer_plist.
void close | ( | ) |
close all the open groups and file
Definition at line 38 of file hdf_archive.cpp.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::group_names, and hdf_archive::is_closed.
Referenced by hdf_archive::create(), HybridRepSetReader< SA >::create_spline_set(), SplineSetReader< typename SA::SplineBase >::create_spline_set(), LCAOrbitalBuilder::createBasisSetH5(), QMCGaussianParserBase::createBasisSetWithHDF5(), QMCGaussianParserBase::createCenterH5(), QMCGaussianParserBase::createDeterminantSetWithHDF5(), QMCGaussianParserBase::createIonSet(), QMCGaussianParserBase::createMultiDeterminantSetCIHDF5(), QMCGaussianParserBase::createShellH5(), SplineSetReader< typename SA::SplineBase >::createSplineDataSpaceLookforDumpFile(), QMCGaussianParserBase::createSPOSetsH5(), HDFWalkerOutput::dump(), QMCGaussianParserBase::dump(), LCAOrbitalBuilder::EvalPeriodicImagePhaseFactors(), RMGParser::getCell(), LCAOHDFParser::getCell(), LCAOHDFParser::getGeometry(), LCAOHDFParser::getMO(), LCAOHDFParser::getSuperTwist(), EshdfFile::handleKpt(), LCAOrbitalBuilder::loadBasisSetFromH5(), LCAOSpinorBuilder::loadMO(), LCAOrbitalBuilder::loadMO(), main(), QMCFixedSampleLinearOptimizeBatched::one_shift_run(), hdf_archive::open(), SkParserHDF5::parse(), LCAOHDFParser::parse(), LCAOSpinorBuilder::putFromH5(), LCAOrbitalBuilder::putFromH5(), LCAOrbitalBuilder::putPBCFromH5(), RandomNumberControl::read_parallel(), RandomNumberControl::read_rank_0(), SlaterDetBuilder::readDetListH5(), EshdfFile::readKptGvecs(), QMCCostFunctionBase::reportParametersH5(), EstimatorManagerBase::stop(), TEST_CASE(), qmcplusplus::TEST_CASE(), OneBodyDensityMatricesTests< T >::testRegisterAndWrite(), RandomNumberControl::write_parallel(), RandomNumberControl::write_rank_0(), and hdf_archive::~hdf_archive().
|
inline |
return true if the file is closed
Definition at line 153 of file hdf_archive.h.
References hdf_archive::file_id, and hdf_archive::is_closed.
bool create | ( | const std::filesystem::path & | fname, |
unsigned | flags = H5F_ACC_TRUNC |
||
) |
create a file
fname | name of hdf5 file |
flags | i/o mode |
Definition at line 143 of file hdf_archive.cpp.
References hdf_archive::access_id, hdf_archive::close(), hdf_archive::file_id, hdf_archive::is_closed, hdf_archive::IS_MASTER, hdf_archive::IS_PARALLEL, hdf_archive::Mode, hdf_archive::NOIO, and hdf_archive::possible_filename_.
Referenced by HybridRepSetReader< SA >::create_spline_set(), SplineSetReader< typename SA::SplineBase >::create_spline_set(), HDFWalkerOutput::dump(), QMCGaussianParserBase::dump(), QMCFixedSampleLinearOptimizeBatched::one_shift_run(), QMCCostFunctionBase::reportParametersH5(), EstimatorManagerBase::start(), TEST_CASE(), qmcplusplus::TEST_CASE(), OneBodyDensityMatricesTests< T >::testRegisterAndWrite(), BranchIO< SFNB >::write(), RandomNumberControl::write(), and VariableSet::writeToHDF().
|
inline |
flush a file
Definition at line 146 of file hdf_archive.h.
References hdf_archive::file_id, and hdf_archive::is_closed.
Referenced by EstimatorManagerBase::collectBlockAverages(), SkEstimator::registerCollectables(), TraceBuffer< TraceInt >::write_hdf(), and WalkerLogBuffer< WLog::Real >::writeHDF().
|
inline |
return file_id. should be only be used for connecting to old codes when porting
Definition at line 126 of file hdf_archive.h.
References hdf_archive::file_id.
Referenced by PWParameterSet::checkVersion(), and SkEstimator::registerCollectables().
|
inline |
read the shape of multidimensional filespace from the group aname this function can be used to query dataset for preparing containers.
The dimensions contributed by T is excluded. See how exactly user dimensions are calculated in getDataShape function definition.
Definition at line 231 of file hdf_archive.h.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::Mode, and hdf_archive::NOIO.
Referenced by EshdfFile::handleDensity(), EshdfFile::handleKpt(), SkParserHDF5::parse(), EshdfFile::readKptGvecs(), RotatedSPOs::readVariationalParameters(), and TEST_CASE().
std::string group_path_as_string | ( | ) | const |
Return a string representation of the current group stack.
Definition at line 246 of file hdf_archive.cpp.
References hdf_archive::group_names.
Referenced by hdf_archive::push(), and TEST_CASE().
|
inline |
check if aname is a dataset
aname | dataset's name |
Definition at line 165 of file hdf_archive.h.
References qmcplusplus::Units::charge::e, hdf_archive::file_id, hdf_archive::group_id, hdf_archive::Mode, and hdf_archive::NOIO.
Referenced by SlaterDetBuilder::readDetListH5(), and TEST_CASE().
|
inline |
check if aname is a dataset of type T
aname | group's name |
Definition at line 180 of file hdf_archive.h.
References qmcplusplus::Units::charge::e, hdf_archive::file_id, hdf_archive::group_id, hdf_archive::Mode, and hdf_archive::NOIO.
Referenced by SlaterDetBuilder::readDetListH5(), and TEST_CASE().
bool is_group | ( | const std::string & | aname | ) |
check if aname is a group
aname | group's name |
Definition at line 165 of file hdf_archive.cpp.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::is_closed, hdf_archive::Mode, and hdf_archive::NOIO.
Referenced by HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), HDFWalkerInput_0_4::read_phdf5(), and RotatedSPOs::readVariationalParameters().
|
inline |
return true if master in parallel i/o
Definition at line 123 of file hdf_archive.h.
References hdf_archive::IS_MASTER, and hdf_archive::Mode.
|
inline |
return true if parallel i/o
Definition at line 120 of file hdf_archive.h.
References hdf_archive::IS_PARALLEL, and hdf_archive::Mode.
Referenced by RandomNumberControl::read(), RandomNumberControl::write(), and HDFWalkerOutput::write_configuration().
bool open | ( | const std::filesystem::path & | fname, |
unsigned | flags = H5F_ACC_RDWR |
||
) |
open a file
fname | name of hdf5 file |
flags | i/o mode |
Definition at line 155 of file hdf_archive.cpp.
References hdf_archive::access_id, hdf_archive::close(), hdf_archive::file_id, hdf_archive::is_closed, hdf_archive::Mode, hdf_archive::NOIO, and hdf_archive::possible_filename_.
Referenced by HybridRepSetReader< SA >::create_spline_set(), SplineSetReader< typename SA::SplineBase >::create_spline_set(), LCAOrbitalBuilder::createBasisSetH5(), QMCGaussianParserBase::createBasisSetWithHDF5(), QMCGaussianParserBase::createCenterH5(), QMCGaussianParserBase::createDeterminantSetWithHDF5(), QMCGaussianParserBase::createIonSet(), QMCGaussianParserBase::createMultiDeterminantSetCIHDF5(), QMCGaussianParserBase::createShellH5(), SplineSetReader< typename SA::SplineBase >::createSplineDataSpaceLookforDumpFile(), QMCGaussianParserBase::createSPOSetsH5(), LCAOrbitalBuilder::EvalPeriodicImagePhaseFactors(), RMGParser::getCell(), LCAOHDFParser::getCell(), LCAOHDFParser::getGeometry(), PWOrbitalSetBuilder::getH5(), LCAOHDFParser::getMO(), LCAOHDFParser::getSuperTwist(), EshdfFile::handleKpt(), LCAOrbitalBuilder::loadBasisSetFromH5(), LCAOSpinorBuilder::loadMO(), LCAOrbitalBuilder::loadMO(), main(), EshdfFile::openHdfFileForRead(), SkParserHDF5::parse(), RMGParser::parse(), LCAOHDFParser::parse(), GridExternalPotential::put(), LCAOSpinorBuilder::putFromH5(), LCAOrbitalBuilder::putFromH5(), LCAOrbitalBuilder::putPBCFromH5(), RandomNumberControl::read(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), HDFWalkerInput_0_4::read_phdf5(), SlaterDetBuilder::readDetListH5(), VariableSet::readFromHDF(), EinsplineSetBuilder::ReadOrbitalInfo(), TEST_CASE(), qmcplusplus::TEST_CASE(), and OneBodyDensityMatricesTests< T >::testRegisterAndWrite().
|
inline |
check if any groups are open group stack will have entries if so
Definition at line 198 of file hdf_archive.h.
References hdf_archive::group_id.
Referenced by TraceBuffer< TraceInt >::register_hdf_data(), and WalkerLogBuffer< WLog::Real >::registerHDFData().
|
inline |
Definition at line 208 of file hdf_archive.h.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::group_names, and hdf_archive::is_closed.
Referenced by ObservableHelper::addProperty(), AOBasisBuilder< COT >::createAOSetH5(), LCAOrbitalBuilder::createBasisSetH5(), QMCGaussianParserBase::createIonSet(), QMCGaussianParserBase::createMultiDeterminantSetCIHDF5(), PWOrbitalSetBuilder::createPW(), QMCGaussianParserBase::createShellH5(), QMCGaussianParserBase::dump(), LCAOHDFParser::getGeometry(), LCAOHDFParser::getSuperTwist(), RMGParser::parse(), LCAOHDFParser::parse(), GaussianCombo< T >::putBasisGroupH5(), LCAOrbitalBuilder::putPBCFromH5(), RandomNumberControl::read_parallel(), RandomNumberControl::read_rank_0(), HybridRepCenterOrbitals< SPLINEBASE::DataType >::read_splines(), VariableSet::readFromHDF(), FakeOptimizableObject::readVariationalParameters(), RotatedSPOs::readVariationalParameters(), TraceSamples< std::complex< TraceReal > >::register_hdf_data(), TraceBuffer< TraceInt >::register_hdf_data(), WalkerLogBuffer< WLog::Real >::registerHDFData(), NEReferencePoints::write(), ObservableHelper::write(), NESpaceGrid< REAL >::write(), OperatorEstBase::write(), TraceBuffer< TraceInt >::write_hdf(), RandomNumberControl::write_parallel(), RandomNumberControl::write_rank_0(), HybridRepCenterOrbitals< SPLINEBASE::DataType >::write_splines(), WalkerLogBuffer< WLog::Real >::writeHDF(), VariableSet::writeToHDF(), FakeOptimizableObject::writeVariationalParameters(), and RotatedSPOs::writeVariationalParameters().
void push | ( | const std::string & | gname, |
bool | createit = true |
||
) |
push a group to the group stack
gname | name of the group |
createit | if true, group is create when missing |
Definition at line 198 of file hdf_archive.cpp.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::group_names, hdf_archive::group_path_as_string(), hdf_archive::is_closed, hdf_archive::lcpl_id, hdf_archive::Mode, hdf_archive::NOIO, and hdf_archive::possible_filename_.
Referenced by ObservableHelper::addProperty(), AOBasisBuilder< COT >::createAOSetH5(), LCAOrbitalBuilder::createBasisSetH5(), QMCGaussianParserBase::createBasisSetWithHDF5(), QMCGaussianParserBase::createCenterH5(), QMCGaussianParserBase::createDeterminantSetWithHDF5(), QMCGaussianParserBase::createIonSet(), QMCGaussianParserBase::createMultiDeterminantSetCIHDF5(), PWOrbitalSetBuilder::createPW(), QMCGaussianParserBase::createShellH5(), QMCGaussianParserBase::createSPOSetsH5(), HDFWalkerOutput::dump(), QMCGaussianParserBase::dump(), LCAOrbitalBuilder::EvalPeriodicImagePhaseFactors(), RMGParser::getCell(), LCAOHDFParser::getCell(), LCAOHDFParser::getGeometry(), LCAOHDFParser::getSuperTwist(), LCAOrbitalBuilder::loadBasisSetFromH5(), LCAOSpinorBuilder::loadMO(), LCAOrbitalBuilder::loadMO(), RMGParser::parse(), LCAOHDFParser::parse(), hdf_archive::push(), GaussianCombo< T >::putBasisGroupH5(), LCAOrbitalBuilder::putPBCFromH5(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), RandomNumberControl::read_parallel(), HDFWalkerInput_0_4::read_phdf5(), RandomNumberControl::read_rank_0(), HybridRepCenterOrbitals< SPLINEBASE::DataType >::read_splines(), SlaterDetBuilder::readDetListH5(), VariableSet::readFromHDF(), FakeOptimizableObject::readVariationalParameters(), RotatedSPOs::readVariationalParameters(), TraceSamples< std::complex< TraceReal > >::register_hdf_data(), TraceBuffer< TraceInt >::register_hdf_data(), WalkerLogBuffer< WLog::Real >::registerHDFData(), QMCCostFunctionBase::reportParametersH5(), TEST_CASE(), qmcplusplus::TEST_CASE(), BranchIO< SFNB >::write(), NEReferencePoints::write(), ObservableHelper::write(), TraceBuffer< TraceInt >::write_hdf(), RandomNumberControl::write_parallel(), RandomNumberControl::write_rank_0(), HybridRepCenterOrbitals< SPLINEBASE::DataType >::write_splines(), WalkerLogBuffer< WLog::Real >::writeHDF(), VariableSet::writeToHDF(), FakeOptimizableObject::writeVariationalParameters(), and RotatedSPOs::writeVariationalParameters().
void push | ( | const hdf_path & | gname, |
bool | createit = true |
||
) |
Definition at line 244 of file hdf_archive.cpp.
References hdf_archive::push(), and hdf_path::string().
|
inline |
read the data from the group aname and check status runtime error is issued on I/O error
Definition at line 306 of file hdf_archive.h.
References hdf_archive::readEntry().
Referenced by RadialOrbitalSetBuilder< COT >::addGridH5(), RadialOrbitalSetBuilder< COT >::addRadialOrbitalH5(), PWParameterSet::checkVersion(), AOBasisBuilder< COT >::createAOSetH5(), LCAOrbitalBuilder::createBasisSetH5(), PWOrbitalSetBuilder::createPW(), PWOrbitalSetBuilder::createPWBasis(), LCAOrbitalBuilder::EvalPeriodicImagePhaseFactors(), RMGParser::getCell(), LCAOHDFParser::getCell(), LCAOHDFParser::getGeometry(), LCAOHDFParser::getMO(), LCAOHDFParser::getSuperTwist(), EshdfFile::handleDensity(), PWParameterSet::hasComplexData(), LCAOrbitalBuilder::LoadFullCoefsFromH5(), LCAOSpinorBuilder::loadMO(), LCAOrbitalBuilder::loadMO(), main(), EinsplineSetBuilder::OccupyBands(), EinsplineSetBuilder::OccupyBands_ESHDF(), RMGParser::parse(), LCAOHDFParser::parse(), GridExternalPotential::put(), GaussianCombo< T >::putBasisGroupH5(), LCAOrbitalBuilder::putFromH5(), AOBasisBuilder< COT >::putH5(), LCAOrbitalBuilder::putPBCFromH5(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), RandomNumberControl::read_parallel(), HDFWalkerInput_0_4::read_phdf5(), RandomNumberControl::read_rank_0(), PWBasis::readbasis(), SlaterDetBuilder::readCoeffs(), SlaterDetBuilder::readDetListH5(), VariableSet::readFromHDF(), EinsplineSetBuilder::ReadGvectors_ESHDF(), EinsplineSetBuilder::ReadOrbitalInfo(), EinsplineSetBuilder::ReadOrbitalInfo_ESHDF(), LCAOrbitalBuilder::readRealMatrixFromH5(), hdf_archive::readSlabReshaped(), hdf_archive::readSlabSelection(), FakeOptimizableObject::readVariationalParameters(), RotatedSPOs::readVariationalParameters(), and TEST_CASE().
|
inline |
read the data from the group aname and return status use read() for inbuilt error checking
Definition at line 293 of file hdf_archive.h.
References qmcplusplus::Units::charge::e, hdf_archive::file_id, hdf_archive::group_id, hdf_archive::Mode, hdf_archive::NOIO, and hdf_archive::xfer_plist.
Referenced by AOBasisBuilder< COT >::createAOSetH5(), LCAOrbitalBuilder::createBasisSetH5(), SplineSetReader< typename SA::SplineBase >::createSplineDataSpaceLookforDumpFile(), LCAOrbitalBuilder::loadBasisSetFromH5(), LCAOHDFParser::parse(), LCAOrbitalBuilder::putFromH5(), hdf_archive::read(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), HDFWalkerInput_0_4::read_phdf5(), AtomicOrbitals< ST >::read_splines(), SplineR2R< ST >::read_splines(), SplineC2R< ST >::read_splines(), SplineC2C< ST >::read_splines(), SplineC2COMPTarget< ST >::read_splines(), SplineC2ROMPTarget< ST >::read_splines(), HybridRepCenterOrbitals< SPLINEBASE::DataType >::read_splines(), SlaterDetBuilder::readCoeffs(), SlaterDetBuilder::readDetListH5(), EinsplineSetBuilder::ReadGvectors_ESHDF(), SplineSetReader< typename SA::SplineBase >::readOneOrbitalCoefs(), EinsplineSetBuilder::ReadOrbitalInfo_ESHDF(), TEST_CASE(), and qmcplusplus::TEST_CASE().
|
inline |
read file dataset with a specific shape into a container and check status
data | container, linear storage required. |
shape | shape on the hdf file |
aname | dataset name in the file runtime error is issued on I/O error |
Definition at line 321 of file hdf_archive.h.
References hdf_archive::read().
Referenced by EshdfFile::handleDensity(), EshdfFile::handleKpt(), SkParserHDF5::parse(), HDFWalkerInput_0_4::read_hdf5(), HDFWalkerInput_0_4::read_hdf5_scatter(), RandomNumberControl::read_rank_0(), EshdfFile::readKptGvecs(), TEST_CASE(), and OneBodyDensityMatricesTests< T >::testRegisterAndWrite().
|
inline |
read a portion of the data from the group aname and check status runtime error is issued on I/O error
note the readSpec array must have dimensionality corresponding to the dataset, values for a dimension must be [0,num_entries-1] for that dimension to specify which value to hold and a -1 to grab all elements from that dimension for example, if the dataset was [5,2,6] and the vector contained (2,1,-1), this would grab 6 elements corresponding to [2,1,:]
Definition at line 345 of file hdf_archive.h.
References hdf_archive::read().
Referenced by EshdfFile::handleKpt(), and TEST_CASE().
|
private |
set the access property
Definition at line 62 of file hdf_archive.cpp.
References hdf_archive::access_id, qmcplusplus::comm, Communicate::getMPI(), hdf_archive::IS_MASTER, hdf_archive::IS_PARALLEL, hdf_archive::lcpl_id, hdf_archive::Mode, hdf_archive::NOIO, Communicate::rank(), Communicate::size(), and hdf_archive::xfer_plist.
|
private |
Definition at line 52 of file hdf_archive.cpp.
References hdf_archive::access_id, hdf_archive::IS_MASTER, hdf_archive::IS_PARALLEL, hdf_archive::lcpl_id, hdf_archive::Mode, and hdf_archive::NOIO.
Referenced by hdf_archive::hdf_archive().
|
inline |
return the top of the group stack
Definition at line 192 of file hdf_archive.h.
References hdf_archive::file_id, and hdf_archive::group_id.
Referenced by ObservableHelper::write(), TraceBuffer< TraceInt >::write_hdf(), and WalkerLogBuffer< WLog::Real >::writeHDF().
|
inline |
Definition at line 367 of file hdf_archive.h.
References hdf_archive::file_id, hdf_archive::group_id, hdf_archive::Mode, and hdf_archive::NOIO.
|
inline |
write the data to the group aname and check status runtime error is issued on I/O error
Definition at line 259 of file hdf_archive.h.
References hdf_archive::writeEntry().
Referenced by ObservableHelper::addProperty(), HybridRepSetReader< SA >::create_spline_set(), SplineSetReader< typename SA::SplineBase >::create_spline_set(), QMCGaussianParserBase::createBasisSetWithHDF5(), QMCGaussianParserBase::createCenterH5(), QMCGaussianParserBase::createDeterminantSetWithHDF5(), QMCGaussianParserBase::createIonSet(), QMCGaussianParserBase::createMultiDeterminantSetCIHDF5(), QMCGaussianParserBase::createShellH5(), QMCGaussianParserBase::createSPOSetsH5(), HDFWalkerOutput::dump(), QMCGaussianParserBase::dump(), QMCFixedSampleLinearOptimizeBatched::one_shift_run(), TraceSamples< std::complex< TraceReal > >::register_hdf_data(), WalkerLogBuffer< WLog::Real >::registerHDFData(), QMCCostFunctionBase::reportParametersH5(), TEST_CASE(), BranchIO< SFNB >::write(), NEReferencePoints::write(), HDFWalkerOutput::write_configuration(), RandomNumberControl::write_parallel(), RandomNumberControl::write_rank_0(), hdf_archive::writeSlabReshaped(), VariableSet::writeToHDF(), FakeOptimizableObject::writeVariationalParameters(), and RotatedSPOs::writeVariationalParameters().
|
inline |
write the data to the group aname and return status use write() for inbuilt error checking
Definition at line 244 of file hdf_archive.h.
References qmcplusplus::Units::charge::e, hdf_archive::file_id, hdf_archive::group_id, hdf_archive::IS_MASTER, hdf_archive::IS_PARALLEL, hdf_archive::Mode, hdf_archive::NOIO, and hdf_archive::xfer_plist.
Referenced by TEST_CASE(), hdf_archive::write(), SplineR2R< ST >::write_splines(), SplineC2R< ST >::write_splines(), AtomicOrbitals< ST >::write_splines(), SplineC2C< ST >::write_splines(), SplineC2COMPTarget< ST >::write_splines(), SplineC2ROMPTarget< ST >::write_splines(), and HybridRepCenterOrbitals< SPLINEBASE::DataType >::write_splines().
|
inline |
write the container data with a specific shape and check status
data | container, linear storage required. |
shape | shape on the hdf file |
aname | dataset name in the file runtime error is issued on I/O error |
Definition at line 274 of file hdf_archive.h.
References hdf_archive::write().
Referenced by TEST_CASE(), HDFWalkerOutput::write_configuration(), and RandomNumberControl::write_rank_0().
|
private |
access id
Definition at line 70 of file hdf_archive.h.
Referenced by hdf_archive::create(), hdf_archive::open(), hdf_archive::set_access_plist(), and hdf_archive::~hdf_archive().
|
private |
file id
Definition at line 68 of file hdf_archive.h.
Referenced by hdf_archive::close(), hdf_archive::closed(), hdf_archive::create(), hdf_archive::flush(), hdf_archive::getFileID(), hdf_archive::getShape(), hdf_archive::is_dataset(), hdf_archive::is_dataset_of_type(), hdf_archive::is_group(), hdf_archive::open(), hdf_archive::pop(), hdf_archive::push(), hdf_archive::readEntry(), hdf_archive::top(), hdf_archive::unlink(), and hdf_archive::writeEntry().
|
private |
FILO to handle H5Group.
Definition at line 76 of file hdf_archive.h.
Referenced by hdf_archive::close(), hdf_archive::getShape(), hdf_archive::is_dataset(), hdf_archive::is_dataset_of_type(), hdf_archive::is_group(), hdf_archive::open_groups(), hdf_archive::pop(), hdf_archive::push(), hdf_archive::readEntry(), hdf_archive::top(), hdf_archive::unlink(), and hdf_archive::writeEntry().
|
private |
Track group names corresponding to group_id.
Definition at line 78 of file hdf_archive.h.
Referenced by hdf_archive::close(), hdf_archive::group_path_as_string(), hdf_archive::pop(), and hdf_archive::push().
|
staticprivate |
Definition at line 60 of file hdf_archive.h.
Referenced by hdf_archive::close(), hdf_archive::closed(), hdf_archive::create(), hdf_archive::flush(), hdf_archive::is_group(), hdf_archive::open(), hdf_archive::pop(), and hdf_archive::push().
|
private |
Link creation property list identifier.
Definition at line 74 of file hdf_archive.h.
Referenced by hdf_archive::push(), hdf_archive::set_access_plist(), and hdf_archive::~hdf_archive().
|
private |
bitset of the io mode Mode[IS_PARALLEL] : true, if parallel Mode[IS_MASTER] : true, if the node is master Mode[NOIO] : true, if I/O is not performed
Definition at line 66 of file hdf_archive.h.
Referenced by hdf_archive::create(), hdf_archive::getShape(), hdf_archive::is_dataset(), hdf_archive::is_dataset_of_type(), hdf_archive::is_group(), hdf_archive::is_master(), hdf_archive::is_parallel(), hdf_archive::open(), hdf_archive::push(), hdf_archive::readEntry(), hdf_archive::set_access_plist(), hdf_archive::unlink(), and hdf_archive::writeEntry().
|
private |
Name of file that hdf_archive thinks is open.
This may not correspond to the actual file because the open call failed, or the file was closed. This information is useful for debugging.
Definition at line 84 of file hdf_archive.h.
Referenced by hdf_archive::create(), hdf_archive::open(), and hdf_archive::push().
|
private |
transfer property
Definition at line 72 of file hdf_archive.h.
Referenced by hdf_archive::readEntry(), hdf_archive::set_access_plist(), hdf_archive::writeEntry(), and hdf_archive::~hdf_archive().