]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed indices in FESeries::Fourier::set_k_vectors(). 7572/head
authorMarc Fehling <marc.fehling@gmx.net>
Tue, 8 Jan 2019 19:20:28 +0000 (20:20 +0100)
committerMarc Fehling <marc.fehling@gmx.net>
Tue, 8 Jan 2019 20:16:38 +0000 (21:16 +0100)
doc/news/changes/minor/20190108Fehling [new file with mode: 0644]
source/fe/fe_series_fourier.cc

diff --git a/doc/news/changes/minor/20190108Fehling b/doc/news/changes/minor/20190108Fehling
new file mode 100644 (file)
index 0000000..804f400
--- /dev/null
@@ -0,0 +1,5 @@
+Fixed: Tensor indices of set_k_vectors() in FESeries::Fourier.
+Coefficients will now be distributed in every
+coordinate direction correctly.
+<br>
+(Marc Fehling, 2019/01/08)
index 260a221aa28a9a1af454bacd482f6672bd8dea9b..1917836c80e86bb45dd9f4099bb2a5d8a51dff66 100644 (file)
@@ -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;
           }
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.