3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00

refreq_imtime.hpp: bug corrected

This commit is contained in:
Laura Messio 2013-07-19 11:33:11 +02:00 committed by Olivier Parcollet
parent c9f6666914
commit 91432bfb80

View File

@ -91,7 +91,7 @@ namespace triqs { namespace gf {
//slices
gf_view<refreq,scalar_valued> slice_mesh_imtime (gf_view<refreq_imtime,scalar_valued> g, size_t index) {
auto arr = reinterpret_linear_array(g.mesh(),g.data()); // view it as a 2d array
return { std::get<0>(g.mesh().components()), arr(index,arrays::range()), local::tail(1,1), nothing() };
return { std::get<0>(g.mesh().components()), arr(arrays::range(),index), local::tail(1,1), nothing() };
}
}}