3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00

gfs: mesh product, rename shape method...

- just a renaming for readibility.
This commit is contained in:
Olivier Parcollet 2014-01-30 19:35:12 +01:00
parent ff3de6c5e7
commit 91978da6db

View File

@ -105,7 +105,7 @@ namespace gfs {
};
public:
utility::mini_vector<size_t, dim> all_size_as_mini_vector() const {
utility::mini_vector<size_t, dim> shape() const {
utility::mini_vector<size_t, dim> res;
triqs::tuple::fold(_aux4(), m_tuple, &res[0]);
return res;
@ -265,7 +265,7 @@ namespace gfs {
template <typename... Meshes, typename T, ull_t OptionsFlags, ull_t To, int R, bool B, bool C>
arrays::array_view<T, sizeof...(Meshes) + R - 1, OptionsFlags, To, true, C>
reinterpret_linear_array(mesh_product<Meshes...> const &m, arrays::array_view<T, R, OptionsFlags, To, B, C> A) {
return {{join(m.all_size_as_mini_vector(), get_shape(A).front_pop())}, A.storage()};
return {{join(m.shape(), get_shape(A).front_pop())}, A.storage()};
}
}
}