From c5c016aa795d9571e944f3c62185239c77f23d84 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Mon, 29 Jul 2013 20:45:27 +0200 Subject: [PATCH] gf: add gf_scalar test --- test/triqs/gf/gf_scalar.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/triqs/gf/gf_scalar.cpp diff --git a/test/triqs/gf/gf_scalar.cpp b/test/triqs/gf/gf_scalar.cpp new file mode 100644 index 00000000..2abe9a48 --- /dev/null +++ b/test/triqs/gf/gf_scalar.cpp @@ -0,0 +1,22 @@ +//#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK +#include +using namespace triqs::gfs; + +#define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) < (beta, Fermion); + + triqs::clef::placeholder<0> om_; + G(om_) << 1/(om_ + 2.3); + + // test hdf5 + H5::H5File file("gf_scalar.h5", H5F_ACC_TRUNC); + h5_write(file, "g", G); + h5_write(file, "gm", reinterpret_scalar_valued_gf_as_matrix_valued(G)); + + +}