mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 05:43:40 +01:00
refreq_imtime.hpp: bug corrected
This commit is contained in:
parent
c9f6666914
commit
91432bfb80
@ -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() };
|
||||
}
|
||||
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user