diff --git a/pytriqs/gf/local/imfreq.pxd b/pytriqs/gf/local/imfreq.pxd index 33163e29..2ec679ce 100644 --- a/pytriqs/gf/local/imfreq.pxd +++ b/pytriqs/gf/local/imfreq.pxd @@ -5,7 +5,7 @@ cdef extern from "triqs/gfs/imfreq.hpp" namespace "triqs::gfs" : statistic_enum statistic imfreq_domain () - cdef cppclass mesh_imfreq "triqs::gfs::mesh" : + cdef cppclass mesh_imfreq "triqs::gfs::gf_mesh" : mesh_imfreq () mesh_imfreq (mesh_imfreq &) imfreq_domain & domain() @@ -13,7 +13,7 @@ cdef extern from "triqs/gfs/imfreq.hpp" namespace "triqs::gfs" : long size() bint operator ==( mesh_imfreq &) - cdef mesh_imfreq make_mesh_imfreq "triqs::gfs::mesh" (double beta, statistic_enum S, size_t n_max) + cdef mesh_imfreq make_mesh_imfreq "triqs::gfs::gf_mesh" (double beta, statistic_enum S, size_t n_max) #cdef mesh_imfreq make_mesh_imfreq "triqs::gfs::gf_implementation::gf_factories::make_mesh" (double beta, statistic_enum S, size_t n_max) cdef cppclass gf_imfreq "triqs::python_tools::cython_proxy >" : diff --git a/pytriqs/gf/local/imtime.pxd b/pytriqs/gf/local/imtime.pxd index cca2c168..7e3ea0d3 100644 --- a/pytriqs/gf/local/imtime.pxd +++ b/pytriqs/gf/local/imtime.pxd @@ -5,7 +5,7 @@ cdef extern from "triqs/gfs/imtime.hpp" namespace "triqs::gfs" : statistic_enum statistic imtime_domain () - cdef cppclass mesh_imtime "triqs::gfs::mesh" : + cdef cppclass mesh_imtime "triqs::gfs::gf_mesh" : mesh_imtime () mesh_imtime (mesh_imtime &) imtime_domain & domain() @@ -14,7 +14,7 @@ cdef extern from "triqs/gfs/imtime.hpp" namespace "triqs::gfs" : long kind() bint operator ==( mesh_imtime &) - cdef mesh_imtime make_mesh_imtime "triqs::gfs::mesh" (double beta, statistic_enum S, size_t n_time_slices, mesh_enum mk) + cdef mesh_imtime make_mesh_imtime "triqs::gfs::gf_mesh" (double beta, statistic_enum S, size_t n_time_slices, mesh_enum mk) #cdef mesh_imtime make_mesh_imtime "triqs::gfs::gf_factories::make_mesh" (double beta, statistic_enum S, size_t n_time_slices, mesh_enum mk) cdef cppclass gf_imtime "triqs::python_tools::cython_proxy>" : diff --git a/pytriqs/gf/local/legendre.pxd b/pytriqs/gf/local/legendre.pxd index ca5307fc..73d221c5 100644 --- a/pytriqs/gf/local/legendre.pxd +++ b/pytriqs/gf/local/legendre.pxd @@ -6,14 +6,14 @@ cdef extern from "triqs/gfs/legendre.hpp" namespace "triqs::gfs" : statistic_enum statistic legendre_domain () - cdef cppclass mesh_legendre "triqs::gfs::mesh" : + cdef cppclass mesh_legendre "triqs::gfs::gf_mesh" : mesh_legendre () mesh_legendre (mesh_legendre &) legendre_domain & domain() long size() bint operator == (mesh_legendre &) - cdef mesh_legendre make_mesh_legendre "triqs::gfs::mesh" (double beta, statistic_enum S, size_t n_leg) + cdef mesh_legendre make_mesh_legendre "triqs::gfs::gf_mesh" (double beta, statistic_enum S, size_t n_leg) #cdef mesh_legendre make_mesh_legendre "triqs::gfs::gf_factories::make_mesh" (double beta, statistic_enum S, size_t n_leg) cdef cppclass gf_legendre "triqs::python_tools::cython_proxy>" : diff --git a/pytriqs/gf/local/refreq.pxd b/pytriqs/gf/local/refreq.pxd index 2c9bfc74..16709a2a 100644 --- a/pytriqs/gf/local/refreq.pxd +++ b/pytriqs/gf/local/refreq.pxd @@ -3,7 +3,7 @@ cdef extern from "triqs/gfs/refreq.hpp" namespace "triqs::gfs" : cdef cppclass refreq_domain : refreq_domain() - cdef cppclass mesh_refreq "triqs::gfs::mesh" : + cdef cppclass mesh_refreq "triqs::gfs::gf_mesh" : mesh_refreq () mesh_refreq (mesh_refreq &) refreq_domain & domain() @@ -13,7 +13,7 @@ cdef extern from "triqs/gfs/refreq.hpp" namespace "triqs::gfs" : double kind() bint operator ==( mesh_refreq &) - cdef mesh_refreq make_mesh_refreq "triqs::gfs::mesh" (double omega_min, double omega_max, size_t n_freq, mesh_enum mk) + cdef mesh_refreq make_mesh_refreq "triqs::gfs::gf_mesh" (double omega_min, double omega_max, size_t n_freq, mesh_enum mk) #cdef mesh_refreq make_mesh_refreq "triqs::gfs::gf_factories::make_mesh" (double omega_min, double omega_max, size_t n_freq, mesh_enum mk) cdef cppclass gf_refreq "triqs::python_tools::cython_proxy>" : diff --git a/pytriqs/gf/local/retime.pxd b/pytriqs/gf/local/retime.pxd index 797c12b8..f7db7361 100644 --- a/pytriqs/gf/local/retime.pxd +++ b/pytriqs/gf/local/retime.pxd @@ -3,7 +3,7 @@ cdef extern from "triqs/gfs/retime.hpp" namespace "triqs::gfs" : cdef cppclass retime_domain : retime_domain() - cdef cppclass mesh_retime "triqs::gfs::mesh" : + cdef cppclass mesh_retime "triqs::gfs::gf_mesh" : mesh_retime () mesh_retime (mesh_retime &) retime_domain & domain() @@ -13,7 +13,7 @@ cdef extern from "triqs/gfs/retime.hpp" namespace "triqs::gfs" : double kind() bint operator ==( mesh_retime &) - cdef mesh_retime make_mesh_retime "triqs::gfs::mesh" (double t_min, double t_max, size_t n_freq, mesh_enum mk) + cdef mesh_retime make_mesh_retime "triqs::gfs::gf_mesh" (double t_min, double t_max, size_t n_freq, mesh_enum mk) #cdef mesh_retime make_mesh_retime "triqs::gfs::gf_factories::make_mesh" (double t_min, double t_max, size_t n_freq, mesh_enum mk) cdef cppclass gf_retime "triqs::python_tools::cython_proxy>" : diff --git a/pytriqs/gf/local/two_real_times.pxd b/pytriqs/gf/local/two_real_times.pxd index 61c8f795..7e72642a 100644 --- a/pytriqs/gf/local/two_real_times.pxd +++ b/pytriqs/gf/local/two_real_times.pxd @@ -3,7 +3,7 @@ cdef extern from "triqs/gfs/two_real_times.hpp" namespace "triqs::gfs" : cdef cppclass two_real_times_domain : two_real_times_domain() - cdef cppclass mesh_two_real_times "triqs::gfs::mesh" : + cdef cppclass mesh_two_real_times "triqs::gfs::gf_mesh" : mesh_two_real_times () mesh_two_real_times (mesh_two_real_times &) two_real_times_domain & domain() @@ -13,7 +13,7 @@ cdef extern from "triqs/gfs/two_real_times.hpp" namespace "triqs::gfs" : double kind() bint operator ==( mesh_two_real_times &) - cdef mesh_two_real_times make_mesh_two_real_times "triqs::gfs::mesh" (double t_max, double n_time_slices) + cdef mesh_two_real_times make_mesh_two_real_times "triqs::gfs::gf_mesh" (double t_max, double n_time_slices) cdef mesh_retime & get_1d_mesh_from_2times_mesh "triqs::gfs::get_1d_mesh_from_2times_mesh" (mesh_two_real_times &) diff --git a/test/triqs/gf/c++11/gf_re_im_freq_time.cpp b/test/triqs/gf/c++11/gf_re_im_freq_time.cpp index 14f3fd78..486c2c03 100644 --- a/test/triqs/gf/c++11/gf_re_im_freq_time.cpp +++ b/test/triqs/gf/c++11/gf_re_im_freq_time.cpp @@ -34,11 +34,11 @@ try { auto G_w_tau= make_gf(wmin, wmax, n_re_freq, beta, Fermion, n_im_time); auto G_w= make_gf(wmin, wmax, n_re_freq); - auto G_t_tau= make_gf, scalar_valued>(mesh(tmin, tmax, n_re_time), mesh(beta, Fermion, n_im_time)); + auto G_t_tau= make_gf, scalar_valued>(gf_mesh(tmin, tmax, n_re_time), gf_mesh(beta, Fermion, n_im_time)); //auto G_t_tau_N= make_gf, scalar_valued>( {tmin, tmax, n_re_time}, {beta, Fermion, n_im_time}); - auto G_w_wn2 = make_gf, scalar_valued>( mesh(wmin, wmax, n_re_freq), mesh(beta, Fermion, n_im_freq)); - auto G_w_tau2 = make_gf, scalar_valued>( mesh(wmin, wmax, n_re_freq), mesh(beta, Fermion, n_im_time,full_bins)); + auto G_w_wn2 = make_gf, scalar_valued>( gf_mesh(wmin, wmax, n_re_freq), gf_mesh(beta, Fermion, n_im_freq)); + auto G_w_tau2 = make_gf, scalar_valued>( gf_mesh(wmin, wmax, n_re_freq), gf_mesh(beta, Fermion, n_im_time,full_bins)); //auto g_tau = slice_mesh1(G_w_tau(),1); diff --git a/triqs/gfs/block.hpp b/triqs/gfs/block.hpp index f74be5b9..45b4c9c4 100644 --- a/triqs/gfs/block.hpp +++ b/triqs/gfs/block.hpp @@ -29,9 +29,9 @@ namespace triqs { namespace gfs { struct block_index {}; - template struct mesh : discrete_mesh { - mesh() = default; - mesh(size_t s) : discrete_mesh(s) {} + template struct gf_mesh : discrete_mesh { + gf_mesh() = default; + gf_mesh(size_t s) : discrete_mesh(s) {} }; namespace gfs_implementation { @@ -66,7 +66,7 @@ namespace triqs { namespace gfs { template struct factories { - typedef mesh mesh_t; + typedef gf_mesh mesh_t; typedef gf gf_t; typedef gf_view gf_view_t; diff --git a/triqs/gfs/curry.hpp b/triqs/gfs/curry.hpp index 0fe1c9c9..8a89bd3d 100644 --- a/triqs/gfs/curry.hpp +++ b/triqs/gfs/curry.hpp @@ -119,7 +119,7 @@ namespace triqs { namespace gfs { Opt> curry (gf_impl, Target,Opt,B> const & g) { auto comp = pv_,pos...>::m(std::make_tuple(),g.mesh().components()); - typedef mesh< typename pv_,pos...>::type,Opt> m_t; + typedef gf_mesh< typename pv_,pos...>::type,Opt> m_t; return {triqs::tuple::apply_construct(comp),curry_polymorphic_lambda, Target,Opt>, pos ...>{g}, nothing(), nothing()}; }; diff --git a/triqs/gfs/gf.hpp b/triqs/gfs/gf.hpp index da700d1a..08e51865 100644 --- a/triqs/gfs/gf.hpp +++ b/triqs/gfs/gf.hpp @@ -34,7 +34,7 @@ namespace triqs { namespace gfs { using arrays::make_shape; // GENERALISE matrxi TO DEFAULT - template struct mesh; + template struct gf_mesh; template class gf; // the regular type template class gf_view; // the view type @@ -101,7 +101,7 @@ namespace triqs { namespace gfs { typedef Variable variable_t; typedef Opt option_t; - typedef mesh mesh_t; + typedef gf_mesh mesh_t; typedef typename mesh_t::domain_t domain_t; typedef typename mesh_t::mesh_point_t mesh_point_t; typedef typename mesh_t::index_t mesh_index_t; diff --git a/triqs/gfs/imfreq.hpp b/triqs/gfs/imfreq.hpp index 7f574483..c2434fe5 100644 --- a/triqs/gfs/imfreq.hpp +++ b/triqs/gfs/imfreq.hpp @@ -29,11 +29,11 @@ namespace triqs { namespace gfs { struct imfreq {}; - template struct mesh : linear_mesh> { + template struct gf_mesh : linear_mesh> { typedef linear_mesh> B; static double m1(double beta) { return std::acos(-1)/beta;} - mesh() = default; - mesh (double beta, statistic_enum S, size_t Nmax = 1025) : + gf_mesh() = default; + gf_mesh (double beta, statistic_enum S, size_t Nmax = 1025) : B(typename B::domain_t(beta,S), S==Fermion?m1(beta):0, S==Fermion?(2*Nmax+1)*m1(beta): 2*Nmax*m1(beta), Nmax, without_last){} }; @@ -76,13 +76,13 @@ namespace triqs { namespace gfs { return gf_t ( std::forward(m), std::move(A), t, nothing() ) ; } static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape) { - return make_gf(mesh(beta,S), shape, local::tail(shape)); + return make_gf(gf_mesh(beta,S), shape, local::tail(shape)); } static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape, size_t Nmax) { - return make_gf(mesh(beta,S,Nmax), shape, local::tail(shape)); + return make_gf(gf_mesh(beta,S,Nmax), shape, local::tail(shape)); } static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape, size_t Nmax, local::tail_view const & t) { - return make_gf(mesh(beta,S,Nmax), shape, t); + return make_gf(gf_mesh(beta,S,Nmax), shape, t); } }; @@ -96,13 +96,13 @@ namespace triqs { namespace gfs { return gf_t ( std::forward(m), std::move(A), t, nothing() ) ; } static gf_t make_gf(double beta, statistic_enum S) { - return make_gf(mesh(beta,S), local::tail(tqa::mini_vector (1,1))); + return make_gf(gf_mesh(beta,S), local::tail(tqa::mini_vector (1,1))); } static gf_t make_gf(double beta, statistic_enum S, size_t Nmax) { - return make_gf(mesh(beta,S,Nmax), local::tail(tqa::mini_vector (1,1))); + return make_gf(gf_mesh(beta,S,Nmax), local::tail(tqa::mini_vector (1,1))); } static gf_t make_gf(double beta, statistic_enum S, size_t Nmax, local::tail_view const & t) { - return make_gf(mesh(beta,S,Nmax), t); + return make_gf(gf_mesh(beta,S,Nmax), t); } }; } // gfs_implementation diff --git a/triqs/gfs/imtime.hpp b/triqs/gfs/imtime.hpp index bc0ff677..3bd3f959 100644 --- a/triqs/gfs/imtime.hpp +++ b/triqs/gfs/imtime.hpp @@ -30,11 +30,11 @@ namespace triqs { namespace gfs { struct imtime {}; - // mesh type and its factories - template struct mesh : linear_mesh> { + // gf_mesh type and its factories + template struct gf_mesh : linear_mesh> { typedef linear_mesh> B; - mesh() = default; - mesh (double beta, statistic_enum S, size_t n_time_slices, mesh_kind mk=half_bins): + gf_mesh() = default; + gf_mesh (double beta, statistic_enum S, size_t n_time_slices, mesh_kind mk=half_bins): B( typename B::domain_t(beta,S), 0, beta, n_time_slices, mk){} }; @@ -134,10 +134,10 @@ namespace triqs { namespace gfs { return gf_t (std::forward(m), std::move(A), t, nothing(), evaluator(shape[0],shape[1]) ) ; } static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape, size_t Nmax=1025, mesh_kind mk= half_bins) { - return make_gf(mesh(beta,S,Nmax,mk), shape, local::tail(shape)); + return make_gf(gf_mesh(beta,S,Nmax,mk), shape, local::tail(shape)); } static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape, size_t Nmax, mesh_kind mk, local::tail_view const & t) { - return make_gf(mesh(beta,S,Nmax,mk), shape, t); + return make_gf(gf_mesh(beta,S,Nmax,mk), shape, t); } }; @@ -150,10 +150,10 @@ namespace triqs { namespace gfs { return gf_t (std::forward(m), std::move(A), t, nothing()); } static gf_t make_gf(double beta, statistic_enum S, size_t Nmax=1025, mesh_kind mk= half_bins) { - return make_gf(mesh(beta,S,Nmax,mk), local::tail(tqa::mini_vector (1,1))); + return make_gf(gf_mesh(beta,S,Nmax,mk), local::tail(tqa::mini_vector (1,1))); } static gf_t make_gf(double beta, statistic_enum S, size_t Nmax, mesh_kind mk, local::tail_view const & t) { - return make_gf(mesh(beta,S,Nmax,mk), t); + return make_gf(gf_mesh(beta,S,Nmax,mk), t); } }; } // gfs_implementation. diff --git a/triqs/gfs/legendre.hpp b/triqs/gfs/legendre.hpp index 10df5fc0..5808ff4c 100644 --- a/triqs/gfs/legendre.hpp +++ b/triqs/gfs/legendre.hpp @@ -31,10 +31,10 @@ namespace triqs { namespace gfs { struct legendre {}; // mesh type and its factories - template struct mesh :discrete_mesh { + template struct gf_mesh :discrete_mesh { typedef discrete_mesh B; - mesh() = default; - mesh(double beta, statistic_enum S, size_t n_leg) : B(typename B::domain_t(beta,S,n_leg)) {} + gf_mesh() = default; + gf_mesh(double beta, statistic_enum S, size_t n_leg) : B(typename B::domain_t(beta,S,n_leg)) {} }; namespace gfs_implementation { @@ -62,11 +62,11 @@ namespace triqs { namespace gfs { template struct factories { typedef gf gf_t; - typedef typename mesh::type mesh_t; + typedef typename gf_mesh::type mesh_t; static gf_t make_gf(double beta, statistic_enum S, tqa::mini_vector shape, size_t n_leg) { typename gf_t::data_regular_t A(shape.front_append(n_leg)); A() = 0; - return gf_t(mesh(beta, S, n_leg), std::move(A), nothing(), nothing()); + return gf_t(gf_mesh(beta, S, n_leg), std::move(A), nothing(), nothing()); } }; diff --git a/triqs/gfs/product.hpp b/triqs/gfs/product.hpp index 56b8f447..4b6c870e 100644 --- a/triqs/gfs/product.hpp +++ b/triqs/gfs/product.hpp @@ -32,10 +32,10 @@ namespace triqs { namespace gfs { }; // the mesh is simply a cartesian product - template struct mesh,Opt> : mesh_product< mesh ... > { - typedef mesh_product< mesh ... > B; + template struct gf_mesh,Opt> : mesh_product< gf_mesh ... > { + typedef mesh_product< gf_mesh ... > B; typedef std::tuple mesh_name_t; - mesh (mesh ... ms) : B {std::move(ms)...} {} + gf_mesh (gf_mesh ... ms) : B {std::move(ms)...} {} }; namespace gfs_implementation { @@ -160,7 +160,7 @@ namespace triqs { namespace gfs { template static gf_t make_gf(Meshes && ... meshes) { - auto m = mesh,Opt>(meshes...); + auto m = gf_mesh,Opt>(meshes...); typename gf_t::data_regular_t A(m.size()); A() =0; return gf_t (m, std::move(A), nothing(), nothing()); diff --git a/triqs/gfs/re_im_freq.hpp b/triqs/gfs/re_im_freq.hpp index bb11fc41..5563b80e 100644 --- a/triqs/gfs/re_im_freq.hpp +++ b/triqs/gfs/re_im_freq.hpp @@ -31,12 +31,12 @@ namespace triqs { namespace gfs { struct re_im_freq {}; // the mesh - template struct mesh : mesh_product,mesh> { - typedef mesh m1_t; - typedef mesh m2_t; + template struct gf_mesh : mesh_product,gf_mesh> { + typedef gf_mesh m1_t; + typedef gf_mesh m2_t; typedef mesh_product B; - mesh (double wmin, double wmax, size_t n_freq_re, double beta, statistic_enum S, size_t n_freq_im) : - B { mesh(wmin,wmax,n_freq_re,full_bins), mesh(beta, S, n_freq_im)} {} + gf_mesh (double wmin, double wmax, size_t n_freq_re, double beta, statistic_enum S, size_t n_freq_im) : + B { gf_mesh(wmin,wmax,n_freq_re,full_bins), gf_mesh(beta, S, n_freq_im)} {} }; namespace gfs_implementation { @@ -72,10 +72,10 @@ namespace triqs { namespace gfs { template struct factories { typedef gf gf_t; - // typedef typename mesh::type mesh_t; + // typedef typename gf_mesh::type mesh_t; static gf_t make_gf(double wmin, double wmax, size_t nw, double beta, statistic_enum S, size_t nwn) { - auto m = mesh(wmin, wmax, nw, beta, S, nwn); + auto m = gf_mesh(wmin, wmax, nw, beta, S, nwn); typename gf_t::data_regular_t A(m.size()); A() =0; return gf_t (m, std::move(A), gfs::make_gf(wmin, wmax, nw), nothing() ) ; diff --git a/triqs/gfs/re_im_time.hpp b/triqs/gfs/re_im_time.hpp index 198720ac..65a46bfa 100644 --- a/triqs/gfs/re_im_time.hpp +++ b/triqs/gfs/re_im_time.hpp @@ -30,13 +30,13 @@ namespace triqs { namespace gfs { struct re_im_time {}; - // the mesh - template struct mesh : mesh_product,mesh> { - typedef mesh m1_t; - typedef mesh m2_t; + // the gf_mesh + template struct gf_mesh : mesh_product,gf_mesh> { + typedef gf_mesh m1_t; + typedef gf_mesh m2_t; typedef mesh_product B; - mesh (double tmin, double tmax, size_t nt, double beta, statistic_enum S, size_t ntau, mesh_kind mk=full_bins) : - B {mesh(tmin,tmax,nt), mesh(beta,S, ntau, mk)} {} + gf_mesh (double tmin, double tmax, size_t nt, double beta, statistic_enum S, size_t ntau, mesh_kind mk=full_bins) : + B {gf_mesh(tmin,tmax,nt), gf_mesh(beta,S, ntau, mk)} {} }; namespace gfs_implementation { @@ -86,7 +86,7 @@ namespace triqs { namespace gfs { } static gf_t make_gf(double tmin, double tmax, size_t nt, double beta, statistic_enum S, size_t ntau, mesh_kind mk=full_bins) { - auto m = mesh(tmin,tmax, nt, beta, S, ntau, mk); + auto m = gf_mesh(tmin,tmax, nt, beta, S, ntau, mk); typename gf_t::data_regular_t A(m.size()); A() =0; return gf_t (m, std::move(A), nothing(), nothing()); diff --git a/triqs/gfs/refreq.hpp b/triqs/gfs/refreq.hpp index 35ca842e..89bab95d 100644 --- a/triqs/gfs/refreq.hpp +++ b/triqs/gfs/refreq.hpp @@ -30,10 +30,10 @@ namespace triqs { namespace gfs { struct refreq {}; - template struct mesh : linear_mesh { + template struct gf_mesh : linear_mesh { typedef linear_mesh B; - mesh() = default; - mesh (double wmin, double wmax, size_t n_freq, mesh_kind mk=full_bins) : + gf_mesh() = default; + gf_mesh (double wmin, double wmax, size_t n_freq, mesh_kind mk=full_bins) : B(typename B::domain_t(), wmin, wmax, n_freq, mk){} }; @@ -82,12 +82,12 @@ namespace triqs { namespace gfs { static gf_t make_gf(double wmin, double wmax, size_t n_freq, tqa::mini_vector shape) { typename gf_t::data_regular_t A(shape.front_append(n_freq)); A() =0; - return gf_t(mesh(wmin, wmax, n_freq, full_bins), std::move(A), local::tail(shape), nothing()); + return gf_t(gf_mesh(wmin, wmax, n_freq, full_bins), std::move(A), local::tail(shape), nothing()); } static gf_t make_gf(double wmin, double wmax, size_t n_freq, tqa::mini_vector shape, mesh_kind mk) { typename gf_t::data_regular_t A(shape.front_append(n_freq)); A() =0; - return gf_t(mesh(wmin, wmax, n_freq, mk), std::move(A), local::tail(shape), nothing()); + return gf_t(gf_mesh(wmin, wmax, n_freq, mk), std::move(A), local::tail(shape), nothing()); } }; @@ -103,12 +103,12 @@ namespace triqs { namespace gfs { static gf_t make_gf(double wmin, double wmax, size_t n_freq) { typename gf_t::data_regular_t A(n_freq); A() =0; - return gf_t(mesh(wmin, wmax, n_freq), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); + return gf_t(gf_mesh(wmin, wmax, n_freq), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); } static gf_t make_gf(double wmin, double wmax, size_t n_freq, mesh_kind mk) { typename gf_t::data_regular_t A(n_freq); A() =0; - return gf_t(mesh(wmin, wmax, n_freq, mk), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); + return gf_t(gf_mesh(wmin, wmax, n_freq, mk), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); } }; diff --git a/triqs/gfs/refreq_imtime.hpp b/triqs/gfs/refreq_imtime.hpp index b35cd3c4..357fd8e2 100644 --- a/triqs/gfs/refreq_imtime.hpp +++ b/triqs/gfs/refreq_imtime.hpp @@ -31,12 +31,12 @@ namespace triqs { namespace gfs { struct refreq_imtime {}; // the mesh - template struct mesh :mesh_product,mesh> { - typedef mesh m1_t; - typedef mesh m2_t; + template struct gf_mesh :mesh_product,gf_mesh> { + typedef gf_mesh m1_t; + typedef gf_mesh m2_t; typedef mesh_product B; - mesh (double wmin, double wmax, size_t n_freq, double beta, statistic_enum S, size_t nt, mesh_kind mk=full_bins ) : - B {mesh(wmin,wmax,n_freq), mesh(beta,S,nt,mk)} {} + gf_mesh (double wmin, double wmax, size_t n_freq, double beta, statistic_enum S, size_t nt, mesh_kind mk=full_bins ) : + B {gf_mesh(wmin,wmax,n_freq), gf_mesh(beta,S,nt,mk)} {} }; namespace gfs_implementation { @@ -87,7 +87,7 @@ namespace triqs { namespace gfs { } static gf_t make_gf(double wmin, double wmax, size_t n_freq, double beta, statistic_enum S, size_t nt, mesh_kind mk=full_bins) { - auto m = mesh(wmin, wmax, n_freq, beta,S, nt, mk); + auto m = gf_mesh(wmin, wmax, n_freq, beta,S, nt, mk); typename gf_t::data_regular_t A(m.size()); A() =0; return gf_t (m, std::move(A), nothing(), nothing() ) ; diff --git a/triqs/gfs/retime.hpp b/triqs/gfs/retime.hpp index bcb7b25a..a37d1f52 100644 --- a/triqs/gfs/retime.hpp +++ b/triqs/gfs/retime.hpp @@ -30,10 +30,10 @@ namespace triqs { namespace gfs { struct retime {}; - template struct mesh : linear_mesh { + template struct gf_mesh : linear_mesh { typedef linear_mesh B; - mesh() = default; - mesh(double tmin, double tmax, size_t n_points, mesh_kind mk=full_bins) : B (typename B::domain_t(), tmin, tmax, n_points, mk){} + gf_mesh() = default; + gf_mesh(double tmin, double tmax, size_t n_points, mesh_kind mk=full_bins) : B (typename B::domain_t(), tmin, tmax, n_points, mk){} }; namespace gfs_implementation { @@ -81,12 +81,12 @@ namespace triqs { namespace gfs { static gf_t make_gf(double tmin, double tmax, size_t n_points, tqa::mini_vector shape, mesh_kind mk) { typename gf_t::data_regular_t A(shape.front_append(n_points)); A() =0; - return gf_t(mesh(tmin, tmax, n_points,mk), std::move(A), local::tail(shape), nothing()); + return gf_t(gf_mesh(tmin, tmax, n_points,mk), std::move(A), local::tail(shape), nothing()); } static gf_t make_gf(double tmin, double tmax, size_t n_points, tqa::mini_vector shape) { typename gf_t::data_regular_t A(shape.front_append(n_points)); A() =0; - return gf_t(mesh(tmin, tmax, n_points), std::move(A), local::tail(shape), nothing()); + return gf_t(gf_mesh(tmin, tmax, n_points), std::move(A), local::tail(shape), nothing()); } }; @@ -103,12 +103,12 @@ namespace triqs { namespace gfs { static gf_t make_gf(double tmin, double tmax, size_t n_points, mesh_kind mk) { typename gf_t::data_regular_t A(n_points); A() =0; - return gf_t(mesh(tmin, tmax, n_points,mk), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); + return gf_t(gf_mesh(tmin, tmax, n_points,mk), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); } static gf_t make_gf(double tmin, double tmax, size_t n_points) { typename gf_t::data_regular_t A(n_points); A() =0; - return gf_t(mesh(tmin, tmax, n_points), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); + return gf_t(gf_mesh(tmin, tmax, n_points), std::move(A), local::tail(tqa::mini_vector(1,1)), nothing()); } }; diff --git a/triqs/gfs/two_real_times.hpp b/triqs/gfs/two_real_times.hpp index b74567d7..71207404 100644 --- a/triqs/gfs/two_real_times.hpp +++ b/triqs/gfs/two_real_times.hpp @@ -30,12 +30,12 @@ namespace triqs { namespace gfs { struct two_real_times {}; // the mesh - template struct mesh :mesh_product ,mesh > { - typedef mesh_product ,mesh > B; - mesh() = default; - mesh (double tmax, double n_time_slices) : - B(mesh ( 0, tmax,n_time_slices, full_bins), - mesh ( 0, tmax,n_time_slices, full_bins) ) {} + template struct gf_mesh :mesh_product ,gf_mesh > { + typedef mesh_product ,gf_mesh > B; + gf_mesh() = default; + gf_mesh (double tmax, double n_time_slices) : + B(gf_mesh ( 0, tmax,n_time_slices, full_bins), + gf_mesh ( 0, tmax,n_time_slices, full_bins) ) {} }; namespace gfs_implementation { @@ -47,7 +47,7 @@ namespace triqs { namespace gfs { template struct get_closest_point { - typedef typename mesh::type mesh_t; + typedef typename gf_mesh::type mesh_t; // // NOT FINISHED, NOT TESTED // template @@ -84,10 +84,10 @@ namespace triqs { namespace gfs { template struct factories { typedef gf gf_t; - typedef mesh mesh_t; + typedef gf_mesh mesh_t; static gf_t make_gf(double tmax, double n_time_slices, tqa::mini_vector shape) { - auto m = mesh(tmax, n_time_slices); + auto m = gf_mesh(tmax, n_time_slices); typename gf_t::data_regular_t A(shape.front_append(m.size())); A() =0; return gf_t (m, std::move(A), nothing(), nothing() ) ; }