![]() |
QMCPACK
|
class to read state range information from sposet input More...
Public Types | |
using | RealType = QMCTraits::RealType |
using | indices_t = std::vector< int > |
using | energies_t = std::vector< RealType > |
Public Member Functions | |
SPOSetInputInfo (xmlNodePtr cur) | |
SPOSetInputInfo () | |
~SPOSetInputInfo () | |
void | reset () |
void | put (xmlNodePtr cur) |
void | report (const std::string &pad="") |
int | min_index () |
int | max_index () |
RealType | min_energy () |
RealType | max_energy () |
indices_t & | get_indices (const std::vector< std::unique_ptr< SPOSetInfo >> &states_vec) |
indices_t & | get_indices (xmlNodePtr cur, const std::vector< std::unique_ptr< SPOSetInfo >> &states_vec) |
Public Attributes | |
int | group |
int | size |
int | index_min |
int | index_max |
std::string | occ |
indices_t | indices |
RealType | ecut |
RealType | energy_min |
RealType | energy_max |
energies_t | energies |
RealType | matching_tol |
bool | has_size |
bool | has_index_range |
bool | has_occ |
bool | has_ecut |
bool | has_energy_range |
bool | has_indices |
bool | has_energies |
bool | has_index_info |
bool | has_energy_info |
bool | legacy_request |
int | lowest_index |
int | highest_index |
RealType | lowest_energy |
RealType | highest_energy |
bool | all_indices_computed |
std::vector< bool > | occupations |
indices_t | all_indices |
Private Member Functions | |
void | find_index_extrema () |
void | find_energy_extrema () |
void | occupy_size () |
void | occupy_index_range () |
void | occupy_occ () |
void | occupy_indices () |
void | occupy_ecut (const SPOSetInfo &states) |
void | occupy_energy_range (const SPOSetInfo &states) |
void | occupy_energies (const SPOSetInfo &states) |
void | occupy (const std::string &loc, const indices_t &ind) |
class to read state range information from sposet input
typically just a temporary object to read and get info from xml
Definition at line 27 of file SPOSetInputInfo.h.
using energies_t = std::vector<RealType> |
Definition at line 31 of file SPOSetInputInfo.h.
using indices_t = std::vector<int> |
Definition at line 30 of file SPOSetInputInfo.h.
using RealType = QMCTraits::RealType |
Definition at line 29 of file SPOSetInputInfo.h.
|
inline |
|
inline |
|
inline |
Definition at line 71 of file SPOSetInputInfo.h.
|
private |
Definition at line 199 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::ecut, SPOSetInputInfo::energies, SPOSetInputInfo::energy_max, SPOSetInputInfo::energy_min, SPOSetInputInfo::has_ecut, SPOSetInputInfo::has_energies, SPOSetInputInfo::has_energy_info, SPOSetInputInfo::has_energy_range, SPOSetInputInfo::highest_energy, SPOSetInputInfo::lowest_energy, omptarget::min(), and qmcplusplus::rnone.
Referenced by SPOSetInputInfo::put().
|
private |
Definition at line 156 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::has_index_info, SPOSetInputInfo::has_index_range, SPOSetInputInfo::has_indices, SPOSetInputInfo::has_occ, SPOSetInputInfo::has_size, SPOSetInputInfo::highest_index, SPOSetInputInfo::index_max, SPOSetInputInfo::index_min, SPOSetInputInfo::indices, SPOSetInputInfo::lowest_index, omptarget::min(), SPOSetInputInfo::occ, and SPOSetInputInfo::size.
Referenced by SPOSetInputInfo::put().
SPOSetInputInfo::indices_t & get_indices | ( | const std::vector< std::unique_ptr< SPOSetInfo >> & | states_vec | ) |
Definition at line 264 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::all_indices, SPOSetInputInfo::all_indices_computed, APP_ABORT, SPOSetInputInfo::group, SPOSetInfo::has_energies(), SPOSetInputInfo::has_energy_info, SPOSetInfo::has_indices(), SPOSetInputInfo::occupations, SPOSetInputInfo::occupy_ecut(), SPOSetInputInfo::occupy_energies(), SPOSetInputInfo::occupy_energy_range(), SPOSetInputInfo::occupy_index_range(), SPOSetInputInfo::occupy_indices(), SPOSetInputInfo::occupy_occ(), SPOSetInputInfo::occupy_size(), SPOSetInfo::partial(), and SPOSetInfo::size().
Referenced by SPOSetInputInfo::get_indices().
|
inline |
Definition at line 89 of file SPOSetInputInfo.h.
References SPOSetInputInfo::get_indices(), and SPOSetInputInfo::put().
|
inline |
|
inline |
Definition at line 81 of file SPOSetInputInfo.h.
References SPOSetInputInfo::highest_index.
Referenced by BsplineReader::create_spline_set(), and EinsplineSetBuilder::createSPOSet().
|
inline |
|
inline |
Definition at line 79 of file SPOSetInputInfo.h.
References SPOSetInputInfo::lowest_index.
Referenced by BsplineReader::create_spline_set().
|
private |
Definition at line 410 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::all_indices, APP_ABORT, omptarget::min(), and SPOSetInputInfo::occupations.
Referenced by SPOSetInputInfo::occupy_ecut(), SPOSetInputInfo::occupy_energies(), SPOSetInputInfo::occupy_energy_range(), SPOSetInputInfo::occupy_index_range(), SPOSetInputInfo::occupy_indices(), SPOSetInputInfo::occupy_occ(), and SPOSetInputInfo::occupy_size().
|
private |
Definition at line 345 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::ecut, SPOInfo::energy, SPOSetInputInfo::has_ecut, SPOInfo::index, SPOSetInputInfo::occupy(), and SPOSetInfo::size().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 375 of file SPOSetInputInfo.cpp.
References qmcplusplus::abs(), APP_ABORT, qmcplusplus::Units::charge::e, SPOSetInputInfo::energies, SPOInfo::energy, SPOSetInfo::energy_ordered(), SPOSetInputInfo::has_energies, SPOInfo::index, SPOSetInputInfo::matching_tol, qmcplusplus::n, SPOSetInputInfo::occupy(), and SPOSetInfo::size().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 360 of file SPOSetInputInfo.cpp.
References SPOInfo::energy, SPOSetInputInfo::energy_max, SPOSetInputInfo::energy_min, SPOSetInputInfo::has_energy_range, SPOInfo::index, SPOSetInputInfo::occupy(), and SPOSetInfo::size().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 316 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::has_index_range, SPOSetInputInfo::index_max, SPOSetInputInfo::index_min, and SPOSetInputInfo::occupy().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 327 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::has_indices, SPOSetInputInfo::indices, and SPOSetInputInfo::occupy().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 333 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::has_occ, SPOSetInputInfo::occ, and SPOSetInputInfo::occupy().
Referenced by SPOSetInputInfo::get_indices().
|
private |
Definition at line 305 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::has_size, SPOSetInputInfo::occupy(), and SPOSetInputInfo::size.
Referenced by SPOSetInputInfo::get_indices().
void put | ( | xmlNodePtr | cur | ) |
Definition at line 61 of file SPOSetInputInfo.cpp.
References OhmmsAttributeSet::add(), APP_ABORT, qmcplusplus::convert(), qmcplusplus::Units::convert_array(), qmcplusplus::Units::charge::e, SPOSetInputInfo::ecut, SPOSetInputInfo::energies, SPOSetInputInfo::energy_max, SPOSetInputInfo::energy_min, qmcplusplus::Units::energy_unit(), SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::group, qmcplusplus::Units::energy::Ha, SPOSetInputInfo::has_ecut, SPOSetInputInfo::has_energies, SPOSetInputInfo::has_energy_info, SPOSetInputInfo::has_energy_range, SPOSetInputInfo::has_index_info, SPOSetInputInfo::has_index_range, SPOSetInputInfo::has_indices, SPOSetInputInfo::has_occ, SPOSetInputInfo::has_size, SPOSetInputInfo::index_max, SPOSetInputInfo::index_min, SPOSetInputInfo::indices, qmcplusplus::inone, SPOSetInputInfo::legacy_request, SPOSetInputInfo::matching_tol, SPOSetInputInfo::occ, OhmmsAttributeSet::put(), putContent(), SPOSetInputInfo::report(), SPOSetInputInfo::reset(), qmcplusplus::rnone, SPOSetInputInfo::size, and qmcplusplus::snone.
Referenced by SPOSetInputInfo::get_indices(), and SPOSetInputInfo::SPOSetInputInfo().
void report | ( | const std::string & | pad = "" | ) |
Definition at line 226 of file SPOSetInputInfo.cpp.
References qmcplusplus::app_log(), SPOSetInputInfo::ecut, SPOSetInputInfo::energies, SPOSetInputInfo::energy_max, SPOSetInputInfo::energy_min, SPOSetInputInfo::group, SPOSetInputInfo::has_ecut, SPOSetInputInfo::has_energies, SPOSetInputInfo::has_energy_range, SPOSetInputInfo::has_index_range, SPOSetInputInfo::has_indices, SPOSetInputInfo::has_occ, SPOSetInputInfo::has_size, SPOSetInputInfo::highest_energy, SPOSetInputInfo::highest_index, SPOSetInputInfo::index_max, SPOSetInputInfo::index_min, SPOSetInputInfo::indices, SPOSetInputInfo::lowest_energy, SPOSetInputInfo::lowest_index, SPOSetInputInfo::matching_tol, SPOSetInputInfo::occ, and SPOSetInputInfo::size.
Referenced by SPOSetInputInfo::put().
void reset | ( | ) |
Definition at line 28 of file SPOSetInputInfo.cpp.
References SPOSetInputInfo::all_indices_computed, SPOSetInputInfo::ecut, SPOSetInputInfo::energy_max, SPOSetInputInfo::energy_min, SPOSetInputInfo::group, SPOSetInputInfo::has_ecut, SPOSetInputInfo::has_energies, SPOSetInputInfo::has_energy_info, SPOSetInputInfo::has_energy_range, SPOSetInputInfo::has_index_info, SPOSetInputInfo::has_index_range, SPOSetInputInfo::has_indices, SPOSetInputInfo::has_occ, SPOSetInputInfo::has_size, SPOSetInputInfo::highest_energy, SPOSetInputInfo::highest_index, SPOSetInputInfo::index_max, SPOSetInputInfo::index_min, qmcplusplus::inone, SPOSetInputInfo::legacy_request, SPOSetInputInfo::lowest_energy, SPOSetInputInfo::lowest_index, SPOSetInputInfo::matching_tol, SPOSetInputInfo::occ, qmcplusplus::rnone, SPOSetInputInfo::size, and qmcplusplus::snone.
Referenced by SPOSetInputInfo::put(), and SPOSetInputInfo::SPOSetInputInfo().
indices_t all_indices |
Definition at line 65 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::get_indices(), and SPOSetInputInfo::occupy().
bool all_indices_computed |
Definition at line 63 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::get_indices(), and SPOSetInputInfo::reset().
RealType ecut |
Definition at line 39 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_ecut(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
energies_t energies |
Definition at line 42 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_energies(), SPOSetInputInfo::put(), and SPOSetInputInfo::report().
RealType energy_max |
Definition at line 41 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_energy_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
RealType energy_min |
Definition at line 40 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_energy_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
int group |
Definition at line 33 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::get_indices(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_ecut |
Definition at line 48 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_ecut(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_energies |
Definition at line 51 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_energies(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_energy_info |
Definition at line 54 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::get_indices(), SPOSetInputInfo::put(), and SPOSetInputInfo::reset().
bool has_energy_range |
Definition at line 49 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::occupy_energy_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_index_info |
Definition at line 53 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::put(), and SPOSetInputInfo::reset().
bool has_index_range |
Definition at line 46 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_index_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_indices |
Definition at line 50 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_indices(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_occ |
Definition at line 47 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_occ(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
bool has_size |
Definition at line 45 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_size(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
RealType highest_energy |
Definition at line 61 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::max_energy(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
int highest_index |
Definition at line 59 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::max_index(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
int index_max |
Definition at line 36 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_index_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
int index_min |
Definition at line 35 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_index_range(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
indices_t indices |
Definition at line 38 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_indices(), SPOSetInputInfo::put(), and SPOSetInputInfo::report().
bool legacy_request |
Definition at line 56 of file SPOSetInputInfo.h.
Referenced by SPOSetBuilder::createSPOSet(), SPOSetInputInfo::put(), and SPOSetInputInfo::reset().
RealType lowest_energy |
Definition at line 60 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_energy_extrema(), SPOSetInputInfo::min_energy(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
int lowest_index |
Definition at line 58 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::min_index(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
RealType matching_tol |
Definition at line 43 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::occupy_energies(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
std::string occ |
Definition at line 37 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_occ(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().
std::vector<bool> occupations |
Definition at line 64 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::get_indices(), and SPOSetInputInfo::occupy().
int size |
Definition at line 34 of file SPOSetInputInfo.h.
Referenced by SPOSetInputInfo::find_index_extrema(), SPOSetInputInfo::occupy_size(), SPOSetInputInfo::put(), SPOSetInputInfo::report(), and SPOSetInputInfo::reset().