Commit 8d49c2c8 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Reduced some asserts to > 0 since they can be called for face expansions and...

Reduced some asserts to > 0 since they can be called for face expansions and not only full expansion
parent 96945a29
...@@ -112,8 +112,11 @@ namespace Nektar ...@@ -112,8 +112,11 @@ namespace Nektar
{ {
inline int getNumberOfCoefficients(int Na, int Nb) inline int getNumberOfCoefficients(int Na, int Nb)
{ {
ASSERTL2(Na > 1, "Order in 'a' direction must be > 1."); // Note these assertions have been set to > 0 because
ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1."); // it can also be used to evaluate face expansion
// order
ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
ASSERTL1(Na <= Nb, "order in 'a' direction is higher " ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
"than order in 'b' direction"); "than order in 'b' direction");
return Na*(Na+1)/2 + Na*(Nb-Na); return Na*(Na+1)/2 + Na*(Nb-Na);
...@@ -133,8 +136,11 @@ namespace Nektar ...@@ -133,8 +136,11 @@ namespace Nektar
{ {
inline int getNumberOfCoefficients(int Na, int Nb) inline int getNumberOfCoefficients(int Na, int Nb)
{ {
ASSERTL2(Na > 1, "Order in 'a' direction must be > 1."); // Note these assertions have been set to > 0 because
ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1."); // it can also be used to evaluate face expansion
// order
ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
return Na*Nb; return Na*Nb;
} }
......
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