41 file.
write(p_DP, pname);
49 file.
write(p_DP, pname);
58 file.
write(p_DP, pname);
66 file.
write(p_DP, pname);
72 std::vector<double> p_DP;
73 p_DP.assign(p.begin(), p.end());
75 file.
write(p_DP, pname);
80 const std::string& pname,
83 std::vector<TinyVector<double, OHMMS_DIM>> p_DP;
84 p_DP.assign(p.begin(), p.end());
86 file.
write(p_DP, pname);
std::vector< hsize_t > offsets
offsets
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 ...
bool h5d_append(hid_t grp, const std::string &aname, hsize_t ¤t, hsize_t ndims, const hsize_t *const dims, const T *const first, hsize_t chunk_size=1, hid_t xfer_plist=H5P_DEFAULT)
helper functions for EinsplineSetBuilder
hid_t top() const
return the top of the group stack
~ObservableHelper()
Destructor closes hdf5 remaining resources.
ObservableHelper(hdf_path title)
Favored constructor.
void write(const value_type *const first_v, hdf_archive &file)
void addProperty(T &p, const std::string &pname, hdf_archive &file)
add named property to describe the collectable this helper class handles
hsize_t current
"file pointer" for h5d_append
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
Declaration of ObservableHelper and other helper class for observables.
Tensor<T,D> class for D by D tensor.
std::vector< hsize_t > mydims
my dimensions
hsize_t lower_bound
starting index
hdf_path group_name
Path of this observable.
void push(const std::string &gname, bool createit=true)
push a group to the group stack
void set_dimensions(const std::vector< int > &dims, int first)
set the shape of this observable
QMCTraits::FullPrecRealType value_type