Commit 984060e3 authored by Edward Laughton's avatar Edward Laughton
Browse files

Fix mode numbering bug in StdHexExp

parent 244f4842
...@@ -629,7 +629,7 @@ namespace Nektar ...@@ -629,7 +629,7 @@ namespace Nektar
int mode1 = (mode-mode2*btmp0*btmp1)/btmp0; int mode1 = (mode-mode2*btmp0*btmp1)/btmp0;
int mode0 = (mode-mode2*btmp0*btmp1)%btmp0; int mode0 = (mode-mode2*btmp0*btmp1)%btmp0;
ASSERTL2(mode == mode2 * btmp0 * btmp1 + mode1 * btmp1 + mode0, ASSERTL2(mode == mode2 * btmp0 * btmp1 + mode1 * btmp0 + mode0,
"Mode lookup failed."); "Mode lookup failed.");
ASSERTL2(mode < m_ncoeffs, ASSERTL2(mode < m_ncoeffs,
"Calling argument mode is larger than total expansion " "Calling argument mode is larger than total expansion "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment