Factor the pentadiagonal matrices of the stretched 010 case, once at init. The elimination overwrites a_re and a_im. Slot 3 and slots 4, 5 hold the factored diagonals. Slot 2 of row j+1 holds the multiplier that removes diag-1 at step j, and slot 1 of row j+2 the multiplier that removes diag-2. Slot 2 of row n holds the multiplier of the last row.
Ref. JCP 228 (2009), 5989–6015, Sec 4
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout), | dimension(:, :, :, :) | :: | a_re |
Pentadiagonal matrices, overwritten by the elimination |
|
| real(kind=dp), | intent(inout), | dimension(:, :, :, :) | :: | a_im |
Pentadiagonal matrices, overwritten by the elimination |
|
| integer, | intent(in) | :: | nx_spec |
Grid size in spectral space. n is the number of rows of the matrix |
||
| integer, | intent(in) | :: | n |
Grid size in spectral space. n is the number of rows of the matrix |
||
| integer, | intent(in) | :: | nz_spec |
Grid size in spectral space. n is the number of rows of the matrix |