//#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK #include #include #include #include #include namespace tql= triqs::clef; namespace tqa= triqs::arrays; using tqa::range; using triqs::arrays::make_shape; using triqs::gf::Fermion; using triqs::gf::imfreq; using triqs::gf::imtime; using triqs::gf::make_gf; using triqs::gf::gf; using triqs::gf::block_index; #define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) < (beta, Fermion, make_shape(2,2)); triqs::clef::placeholder<0> om_; //G(om_) << (om_ - 2.1); auto G2 = G; std::cout << c.rank() << "\t"<< G.singularity()<< std::endl; boost::mpi::reduce(c, G, G2, std::plus>(), 0); std::cout << c.rank() << "\t" << G2.singularity()<< std::endl; G(om_) << (om_ - 2.1); //std::cout << c.rank() << "\t"<< G.singularity()<< std::endl; //boost::mpi::reduce(c, G, G2, std::plus>(), 0); // std::cout << c.rank() << "\t" << G2.singularity()<< std::endl; auto g3 = G2 + G; std::cout << c.rank() << "\t" << g3.singularity()<< std::endl; //auto Gi = make_gf (beta, Fermion, make_shape(2,2)); //G(om_) << (om_ - 2.1); auto g4 = g3 + G; //std::cout << c.rank() << "\t" << Gi.singularity()<< std::endl; std::cout << c.rank() << "\t" << g4.singularity()<< std::endl; std::cout << c.rank() << "\t" << g3.singularity() + g4.singularity()<< std::endl; }