示例#1
0
void mcobservables_load(alps::mcobservables & self, alps::hdf5::archive & ar, std::string const & path) {
    std::string current = ar.get_context();
    ar.set_context(path);
    self.load(ar);
    ar.set_context(current);
}
示例#2
0
 void load(alps::hdf5::archive &ar)
 {
     using namespace alps;
     resize(ar.extent("")[0]);
     ar >> make_pvp("", &values_.front(), std::vector<std::size_t>(2, size1_,size2_));
 }
示例#3
0
 /// Load from HDF5
 void load(alps::hdf5::archive &ar) {
   load(ar, ar.get_context());
 }
示例#4
0
 /// Save to HDF5
 void save(alps::hdf5::archive &ar) const {
   save(ar, ar.get_context());
 }
示例#5
0
 from_archive(alps::hdf5::archive& ar)
     : ar_(ar), context_(ar.get_context())
 {}