Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
1903fd29
Commit
1903fd29
authored
Jul 19, 2016
by
Douglas Serson
Committed by
Chris Cantwell
Aug 14, 2016
Browse files
Add checks to make sure npz is consistent with HomModesZ
(cherry picked from commit
b4a970ac
)
parent
de0f25c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/MultiRegions/ExpListHomogeneous1D.cpp
View file @
1903fd29
...
...
@@ -78,6 +78,19 @@ namespace Nektar
m_homogeneousBasis
->
GetNumPoints
()
/
m_StripZcomm
->
GetSize
());
ASSERTL0
(
m_homogeneousBasis
->
GetNumPoints
()
%
m_StripZcomm
->
GetSize
()
==
0
,
"HomModesZ should be a multiple of npz."
);
if
(
(
m_homogeneousBasis
->
GetBasisType
()
!=
LibUtilities
::
eFourierHalfModeRe
)
&&
(
m_homogeneousBasis
->
GetBasisType
()
!=
LibUtilities
::
eFourierHalfModeIm
)
)
{
ASSERTL0
(
m_planes
.
num_elements
()
%
2
==
0
,
"HomModesZ/npz should be an even integer."
);
}
if
(
m_useFFT
)
{
m_FFT
=
LibUtilities
::
GetNektarFFTFactory
().
CreateInstance
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment