コード例 #1
0
ファイル: block_matrix.hpp プロジェクト: JaksaVucicevic/triqs
 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));
 }
コード例 #2
0
ファイル: group.hpp プロジェクト: Titan-C/triqs
 ///  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());
 }
コード例 #3
0
ファイル: group.hpp プロジェクト: davoudn/triqs-1
 ///  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() ) ;
  }