Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Longxiang Li
Nektar
Commits
76af2e19
Commit
76af2e19
authored
Aug 11, 2016
by
Douglas Serson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform asserts as soon as possible
parent
b4a970ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
library/MultiRegions/ExpListHomogeneous1D.cpp
library/MultiRegions/ExpListHomogeneous1D.cpp
+11
-9
No files found.
library/MultiRegions/ExpListHomogeneous1D.cpp
View file @
76af2e19
...
...
@@ -71,13 +71,6 @@ namespace Nektar
m_comm
->
GetColumnComm
()
->
GetColumnComm
()
:
m_comm
->
GetColumnComm
();
m_transposition
=
MemoryManager
<
LibUtilities
::
Transposition
>
::
AllocateSharedPtr
(
HomoBasis
,
m_comm
,
m_StripZcomm
);
m_planes
=
Array
<
OneD
,
ExpListSharedPtr
>
(
m_homogeneousBasis
->
GetNumPoints
()
/
m_StripZcomm
->
GetSize
());
ASSERTL0
(
m_homogeneousBasis
->
GetNumPoints
()
%
m_StripZcomm
->
GetSize
()
==
0
,
"HomModesZ should be a multiple of npz."
);
...
...
@@ -87,10 +80,19 @@ namespace Nektar
&&
(
m_homogeneousBasis
->
GetBasisType
()
!=
LibUtilities
::
eFourierHalfModeIm
)
)
{
ASSERTL0
(
m_planes
.
num_elements
()
%
2
==
0
,
"HomModesZ/npz should be an even integer."
);
ASSERTL0
(
(
m_homogeneousBasis
->
GetNumPoints
()
/
m_StripZcomm
->
GetSize
())
%
2
==
0
,
"HomModesZ/npz should be an even integer."
);
}
m_transposition
=
MemoryManager
<
LibUtilities
::
Transposition
>
::
AllocateSharedPtr
(
HomoBasis
,
m_comm
,
m_StripZcomm
);
m_planes
=
Array
<
OneD
,
ExpListSharedPtr
>
(
m_homogeneousBasis
->
GetNumPoints
()
/
m_StripZcomm
->
GetSize
());
if
(
m_useFFT
)
{
m_FFT
=
LibUtilities
::
GetNektarFFTFactory
().
CreateInstance
(
...
...
Write
Preview
Markdown
is supported
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