Commit 0b077caa authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Fixed compile error due to function parameter changes in master.

Added initialization of interiorMap arrays on 3D elements if needed.
parent 50dc5bf9
......@@ -111,7 +111,7 @@ namespace Nektar
m_expList.lock()->GeneralMatrixOp(
m_linSysKey,
pOutput, tmp, true);
pOutput, tmp, eGlobal);
Vmath::Vsub( nGlobDofs, pInput.get(),1,
tmp.get(), 1,
......
......@@ -2180,7 +2180,7 @@ namespace Nektar
int nIntCoeffs = m_ncoeffs - NumBndryCoeffs();
if(outarray.num_elements()!=nIntCoeffs)
if(outarray.num_elements() != nIntCoeffs)
{
outarray = Array<OneD, unsigned int>(nIntCoeffs);
}
......
......@@ -1816,6 +1816,14 @@ namespace Nektar
int P = m_base[0]->GetNumModes() - 1, p;
int Q = m_base[1]->GetNumModes() - 1, q;
int R = m_base[2]->GetNumModes() - 1, r;
int nIntCoeffs = m_ncoeffs - NumBndryCoeffs();
if(outarray.num_elements()!=nIntCoeffs)
{
outarray = Array<OneD, unsigned int>(nIntCoeffs);
}
int idx = 0;
// Loop over all interior modes.
......
......@@ -1898,6 +1898,13 @@ namespace Nektar
int Q = m_base[1]->GetNumModes();
int R = m_base[2]->GetNumModes();
int nIntCoeffs = m_ncoeffs - NumBndryCoeffs();
if(outarray.num_elements() != nIntCoeffs)
{
outarray = Array<OneD, unsigned int>(nIntCoeffs);
}
int idx = 0;
for (int i = 2; i < P-2; ++i)
{
......
Supports Markdown
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