#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK #include using namespace triqs::gfs; using namespace triqs; #define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) < ({beta, Fermion}, {2,2}); auto G2 = G1; auto G3 = G2; // construct some block functions auto B0 = block_gf (3); auto B1 = make_block_gf (3, G1); auto B2 = make_block_gf ({G1,G1,G1}); auto B3 = make_block_gf ({"a","b","c"}, {G1,G1,G1}); auto B4 = block_gf (1); // test hdf5 { H5::H5File file("ess_gf.h5", H5F_ACC_TRUNC ); h5_write(file, "B3", B3); } { H5::H5File file("ess_gf.h5", H5F_ACC_RDONLY); std::cout << "B4 mesh" << B4.mesh().size()< b_; clef::placeholder<1> om_; B1[b_][om_] << b_ / ( om_ + 2); // does not work //std::vector> green_v; //green_v.emplace_back({beta, Fermion}, {2,2} ); } TRIQS_CATCH_AND_ABORT; }