From a8a58e28e6d5f2c12bdbfa52c28e9e7b059765e5 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Tue, 8 Jan 2019 20:20:28 +0100 Subject: [PATCH] Fixed indices in FESeries::Fourier::set_k_vectors(). --- doc/news/changes/minor/20190108Fehling | 5 +++++ source/fe/fe_series_fourier.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 doc/news/changes/minor/20190108Fehling diff --git a/doc/news/changes/minor/20190108Fehling b/doc/news/changes/minor/20190108Fehling new file mode 100644 index 0000000000..804f400a80 --- /dev/null +++ b/doc/news/changes/minor/20190108Fehling @@ -0,0 +1,5 @@ +Fixed: Tensor indices of set_k_vectors() in FESeries::Fourier. +Coefficients will now be distributed in every +coordinate direction correctly. +
+(Marc Fehling, 2019/01/08) diff --git a/source/fe/fe_series_fourier.cc b/source/fe/fe_series_fourier.cc index 260a221aa2..1917836c80 100644 --- a/source/fe/fe_series_fourier.cc +++ b/source/fe/fe_series_fourier.cc @@ -54,8 +54,8 @@ namespace for (unsigned int k = 0; k < N; ++k) { k_vectors(i, j, k)[0] = 2. * numbers::PI * i; - k_vectors(i, j, k)[0] = 2. * numbers::PI * j; - k_vectors(i, j, k)[0] = 2. * numbers::PI * k; + k_vectors(i, j, k)[1] = 2. * numbers::PI * j; + k_vectors(i, j, k)[2] = 2. * numbers::PI * k; } } -- 2.39.5