60 const auto mode = modeIndexKey.
m_mode;
61 const auto nm0 = modeIndexKey.
m_nm0;
62 const auto nm1 = modeIndexKey.
m_nm1;
67 index.template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
68 for (
unsigned int p = 0, mode_pq = 0; p < nm0; p++)
70 for (
unsigned int q = 0; q < nm1 - p; q++, mode_pq++)
93 const auto mode = modeIndexKey.
m_mode;
94 const auto nm0 = modeIndexKey.
m_nm0;
95 const auto nm1 = modeIndexKey.
m_nm1;
96 const auto nm2 = modeIndexKey.
m_nm2;
99 const unsigned int nm01 = (2u * nm1 - nm0 + 1u) * nm0 / 2u;
100 if (mode == 0 || mode == 3)
104 index.template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
105 for (
unsigned int p = 0, mode_pq = 0; p < nm0; p++)
107 for (
unsigned int q = 0; q < nm1 - p; q++, mode_pq++)
122 else if (mode == 1 || mode == 2)
126 index.template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
127 for (
unsigned int p = 0, mode_pq = 0, mode_pqr = 0; p < nm0;
130 for (
unsigned int q = 0; q < nm1 - p; q++, mode_pq++)
132 for (
unsigned int r = 0; r < nm2 - p - q;
159 const auto mode = modeIndexKey.
m_mode;
160 const auto nm0 = modeIndexKey.
m_nm0;
161 const auto nm1 = modeIndexKey.
m_nm1;
162 const auto nm2 = modeIndexKey.
m_nm2;
168 index.template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
169 for (
unsigned int p = 0, mode_pqr = 0; p < nm0; p++)
171 for (
unsigned int q = 0u; q < nm1; q++)
173 for (
unsigned int r = 0u; r < nm2 - p; r++, mode_pqr++)
190 "invalid data requested.");
202 const auto mode = modeIndexKey.
m_mode;
203 const auto nm0 = modeIndexKey.
m_nm0;
204 const auto nm1 = modeIndexKey.
m_nm1;
205 const auto nm2 = modeIndexKey.
m_nm2;
211 index.template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
212 for (
unsigned int p = 0, mode_pqr = 0; p < nm0; p++)
214 for (
unsigned int q = 0u; q < nm1; q++)
216 for (
unsigned int r = 0; r < nm2 - std::max(p, q);
230 "invalid data requested.");
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...