From: Marc Fehling Date: Tue, 8 Jan 2019 19:20:28 +0000 (+0100) Subject: Fixed indices in FESeries::Fourier::set_k_vectors(). X-Git-Tag: v9.1.0-rc1~447^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8a58e28e6d5f2c12bdbfa52c28e9e7b059765e5;p=dealii.git Fixed indices in FESeries::Fourier::set_k_vectors(). --- 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; } }