Fixed initialization of 3d FFT

This commit is contained in:
Guilhem Lavaux 2012-11-27 20:10:40 -05:00
parent 126ec18317
commit 5d6ad978e8

View File

@ -163,7 +163,7 @@ namespace CosmoTool
template<typename T2>
static std::vector<T2> make_3d_vector(T2 a, T2 b, T2 c)
{
T2 arr[2] = { a, b, c};
T2 arr[3] = { a, b, c};
return std::vector<T2>(&arr[0], &arr[3]);
}