Example #1
0
 void h5_write (triqs::h5::group fg, std::string subgroup_name, block_matrix<T> const & c) {
  triqs::h5::group gr = fg.create_group(subgroup_name);
  h5_write(gr,"block_names",c.block_names);
  h5_write(gr,"matrix_vec",c.matrix_vec);
  h5_write_attribute(gr, "TRIQS_HDF5_data_scheme", get_triqs_hdf5_data_scheme(c));
 }
Example #2
0
 ///  Write the triqs tag of the group if it is an object.
 template <typename T> void write_triqs_hdf5_data_scheme(T const &obj) {
  _write_triqs_hdf5_data_scheme(get_triqs_hdf5_data_scheme(obj).c_str());
 }
Example #3
0
 ///  Write the triqs tag of the group if it is an object.
 template<typename T>  void write_triqs_hdf5_data_scheme (T const & obj) {  
  h5::write_string_attribute( &_g, "TRIQS_HDF5_data_scheme" , get_triqs_hdf5_data_scheme(obj).c_str() ) ;
  }